diff options
author | David Zeuthen <zeuthen@chromium.org> | 2013-04-29 13:42:47 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-04-30 19:03:07 -0700 |
commit | a99981fda75fe0b17e96c700e3ddc93eca1cebe5 (patch) | |
tree | 88ec1486cf36f378acaf666c61a56ea533966caa /utils.h | |
parent | 8a075a75a13a2b182c229f3095c20e69f8f8f999 (diff) |
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>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -294,16 +294,16 @@ std::string FormatTimeDelta(base::TimeDelta delta); // aggregating error codes beyond the enum range, etc. This method is // idempotent, i.e. if called with a value previously returned by this method, // it'll return the same value again. -ActionExitCode GetBaseErrorCode(ActionExitCode code); +ErrorCode GetBaseErrorCode(ErrorCode code); // Sends the error code to UMA using the metrics interface object in the given // system state. It also uses the system state to determine the right UMA // bucket for the error code. -void SendErrorCodeToUma(SystemState* system_state, ActionExitCode code); +void SendErrorCodeToUma(SystemState* system_state, ErrorCode code); -// Returns a string representation of the ActionExitCodes (either the base +// Returns a string representation of the ErrorCodes (either the base // error codes or the bit flags) for logging purposes. -std::string CodeToString(ActionExitCode code); +std::string CodeToString(ErrorCode code); // Creates the powerwash marker file with the appropriate commands in it. // Returns true if successfully created. False otherwise. @@ -441,13 +441,13 @@ class ScopedActionCompleter { AbstractAction* action) : processor_(processor), action_(action), - code_(kActionCodeError), + code_(kErrorCodeError), should_complete_(true) {} ~ScopedActionCompleter() { if (should_complete_) processor_->ActionComplete(action_, code_); } - void set_code(ActionExitCode code) { code_ = code; } + void set_code(ErrorCode code) { code_ = code; } void set_should_complete(bool should_complete) { should_complete_ = should_complete; } @@ -455,7 +455,7 @@ class ScopedActionCompleter { private: ActionProcessor* processor_; AbstractAction* action_; - ActionExitCode code_; + ErrorCode code_; bool should_complete_; DISALLOW_COPY_AND_ASSIGN(ScopedActionCompleter); }; |