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

Unified Diff: update_attempter.cc

Issue 4679003: AU: Remove obsolete postinst --postcommit call. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git@master
Patch Set: fix copyrights Created 10 years, 1 month 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') | update_attempter_unittest.cc » ('j') | 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 a108001d7fb7892d9e9197234c349dd01ea7bd1b..ef6a949ccf3c418d67cfeaf4d0d52f4759967c83 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -159,10 +159,8 @@ void UpdateAttempter::Update(const std::string& app_version,
new OmahaEvent(
OmahaEvent::kTypeUpdateDownloadFinished),
new LibcurlHttpFetcher));
- shared_ptr<PostinstallRunnerAction> postinstall_runner_action_precommit(
- new PostinstallRunnerAction(true));
- shared_ptr<PostinstallRunnerAction> postinstall_runner_action_postcommit(
- new PostinstallRunnerAction(false));
+ shared_ptr<PostinstallRunnerAction> postinstall_runner_action(
+ new PostinstallRunnerAction);
shared_ptr<OmahaRequestAction> update_complete_action(
new OmahaRequestAction(prefs_,
omaha_request_params_,
@@ -181,10 +179,7 @@ void UpdateAttempter::Update(const std::string& app_version,
actions_.push_back(shared_ptr<AbstractAction>(download_started_action));
actions_.push_back(shared_ptr<AbstractAction>(download_action));
actions_.push_back(shared_ptr<AbstractAction>(download_finished_action));
- actions_.push_back(shared_ptr<AbstractAction>(
- postinstall_runner_action_precommit));
- actions_.push_back(shared_ptr<AbstractAction>(
- postinstall_runner_action_postcommit));
+ actions_.push_back(shared_ptr<AbstractAction>(postinstall_runner_action));
actions_.push_back(shared_ptr<AbstractAction>(update_complete_action));
// Enqueue the actions
@@ -204,9 +199,7 @@ void UpdateAttempter::Update(const std::string& app_version,
BondActions(kernel_filesystem_copier_action.get(),
download_action.get());
BondActions(download_action.get(),
- postinstall_runner_action_precommit.get());
- BondActions(postinstall_runner_action_precommit.get(),
- postinstall_runner_action_postcommit.get());
+ postinstall_runner_action.get());
SetStatusAndNotify(UPDATE_STATUS_CHECKING_FOR_UPDATE);
processor_->StartProcessing();
« no previous file with comments | « postinstall_runner_action_unittest.cc ('k') | update_attempter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698