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/postinstall_runner_action.cc b/postinstall_runner_action.cc
index 802a2cd..20dfae9 100644
--- a/postinstall_runner_action.cc
+++ b/postinstall_runner_action.cc
@@ -59,7 +59,7 @@
     if (utils::CreatePowerwashMarkerFile()) {
       powerwash_marker_created_ = true;
     } else {
-      completer.set_code(kActionCodePostinstallPowerwashError);
+      completer.set_code(kErrorCodePostinstallPowerwashError);
       return;
     }
   }
@@ -88,7 +88,7 @@
       // This special return code means that we tried to update firmware,
       // but couldn't because we booted from FW B, and we need to reboot
       // to get back to FW A.
-      completer.set_code(kActionCodePostinstallBootedFromFirmwareB);
+      completer.set_code(kErrorCodePostinstallBootedFromFirmwareB);
     }
     return;
   }
@@ -100,7 +100,7 @@
   if (HasOutputPipe())
     SetOutputObject(install_plan);
 
-  completer.set_code(kActionCodeSuccess);
+  completer.set_code(kErrorCodeSuccess);
 }
 
 void PostinstallRunnerAction::StaticCompletePostinstall(int return_code,