Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: set_bootable_flag_action.cc

Issue 3022008: For actions, switch bool success into an exit code. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: switch to all positive error codes. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « postinstall_runner_action_unittest.cc ('k') | test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: set_bootable_flag_action.cc
diff --git a/set_bootable_flag_action.cc b/set_bootable_flag_action.cc
index ad574ccf31e08bf358587af4dc4b1cba70e83f04..1cec31e052f279870468e5003c8f9cb9c5a5cfbc 100644
--- a/set_bootable_flag_action.cc
+++ b/set_bootable_flag_action.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -69,7 +69,7 @@ void SetBootableFlagAction::PerformAction() {
Subprocess::SynchronousExec(command, &rc);
TEST_AND_RETURN(rc == 0);
- completer.set_success(true);
+ completer.set_code(kActionCodeSuccess);
if (HasOutputPipe())
SetOutputObject(GetInputObject());
}
« no previous file with comments | « postinstall_runner_action_unittest.cc ('k') | test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698