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

Unified Diff: components/update_client/action_update.cc

Issue 2773973003: remove update_client::Configurator::StepDelay (Closed)
Patch Set: owners Created 3 years, 9 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 | « components/component_updater/configurator_impl_unittest.cc ('k') | components/update_client/configurator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/action_update.cc
diff --git a/components/update_client/action_update.cc b/components/update_client/action_update.cc
index 3888d7c1214a56560556fffc582849f512fa3f01..4d4fce297c24bf6537bd38dd063986e6e1436b41 100644
--- a/components/update_client/action_update.cc
+++ b/components/update_client/action_update.cc
@@ -103,12 +103,10 @@ void ActionUpdate::DownloadComplete(
OnDownloadError(item, download_result);
} else {
OnDownloadSuccess(item, download_result);
- update_context_->main_task_runner->PostDelayedTask(
+ update_context_->main_task_runner->PostTask(
FROM_HERE,
base::Bind(&ActionUpdate::StartInstall, base::Unretained(this), item,
- download_result.response),
- base::TimeDelta::FromMilliseconds(
- update_context_->config->StepDelay()));
+ download_result.response));
}
}
@@ -184,11 +182,10 @@ void ActionUpdate::InstallCompleteOnBlockingTaskRunner(
int error,
int extended_error) {
update_client::DeleteFileAndEmptyParentDirectory(crx_path);
- update_context_->main_task_runner->PostDelayedTask(
+ update_context_->main_task_runner->PostTask(
FROM_HERE,
base::Bind(&ActionUpdate::InstallComplete, base::Unretained(this),
- item->id, error_category, error, extended_error),
- base::TimeDelta::FromMilliseconds(update_context_->config->StepDelay()));
+ item->id, error_category, error, extended_error));
}
CrxInstaller::Result ActionUpdate::DoInstall(
« no previous file with comments | « components/component_updater/configurator_impl_unittest.cc ('k') | components/update_client/configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698