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

Unified Diff: update_attempter.cc

Issue 3035007: Switch OmahaEvent's error_code to ActionExitCode. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: explicit single argument ctor 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 | « omaha_request_action_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_attempter.cc
diff --git a/update_attempter.cc b/update_attempter.cc
index b5d9644970e94abc67efd75a35cca9247f839654..f4b284f899cd750bb1a9343bd4e57802aa51e2e7 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -116,18 +116,14 @@ void UpdateAttempter::Update() {
shared_ptr<OmahaRequestAction> download_started_action(
new OmahaRequestAction(omaha_request_params_,
new OmahaEvent(
- OmahaEvent::kTypeUpdateDownloadStarted,
- OmahaEvent::kResultSuccess,
- 0),
+ OmahaEvent::kTypeUpdateDownloadStarted),
new LibcurlHttpFetcher));
shared_ptr<DownloadAction> download_action(
new DownloadAction(new LibcurlHttpFetcher));
shared_ptr<OmahaRequestAction> download_finished_action(
new OmahaRequestAction(omaha_request_params_,
new OmahaEvent(
- OmahaEvent::kTypeUpdateDownloadFinished,
- OmahaEvent::kResultSuccess,
- 0),
+ OmahaEvent::kTypeUpdateDownloadFinished),
new LibcurlHttpFetcher));
shared_ptr<PostinstallRunnerAction> postinstall_runner_action_precommit(
new PostinstallRunnerAction(true));
@@ -137,9 +133,7 @@ void UpdateAttempter::Update() {
new PostinstallRunnerAction(false));
shared_ptr<OmahaRequestAction> update_complete_action(
new OmahaRequestAction(omaha_request_params_,
- new OmahaEvent(OmahaEvent::kTypeUpdateComplete,
- OmahaEvent::kResultSuccess,
- 0),
+ new OmahaEvent(OmahaEvent::kTypeUpdateComplete),
new LibcurlHttpFetcher));
download_action->set_delegate(this);
« no previous file with comments | « omaha_request_action_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698