Rename ActionExitCode to ErrorCode

Nowadays ActionExitCode is used throughout the codebase so use a more
generic name to reflect this.

BUG=chromium:216507
TEST=unit tests pass

Change-Id: I23d1d7e2676443251dbc42ed137fd018aadfa8a3
Reviewed-on: https://gerrit.chromium.org/gerrit/49512
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: David Zeuthen <zeuthen@chromium.org>
Tested-by: David Zeuthen <zeuthen@chromium.org>
diff --git a/omaha_request_action.h b/omaha_request_action.h
index 528ce19..7a4d3f2 100644
--- a/omaha_request_action.h
+++ b/omaha_request_action.h
@@ -54,19 +54,19 @@
   OmahaEvent()
       : type(kTypeUnknown),
         result(kResultError),
-        error_code(kActionCodeError) {}
+        error_code(kErrorCodeError) {}
   explicit OmahaEvent(Type in_type)
       : type(in_type),
         result(kResultSuccess),
-        error_code(kActionCodeSuccess) {}
-  OmahaEvent(Type in_type, Result in_result, ActionExitCode in_error_code)
+        error_code(kErrorCodeSuccess) {}
+  OmahaEvent(Type in_type, Result in_result, ErrorCode in_error_code)
       : type(in_type),
         result(in_result),
         error_code(in_error_code) {}
 
   Type type;
   Result result;
-  ActionExitCode error_code;
+  ErrorCode error_code;
 };
 
 class NoneType;