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

Unified Diff: chrome/browser/component_updater/component_updater_configurator.cc

Issue 12054003: Add an API to component_updater that asks to do an update check "now". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move commandline check Created 7 years, 10 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 | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/component_updater/component_updater_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/component_updater_configurator.cc
diff --git a/chrome/browser/component_updater/component_updater_configurator.cc b/chrome/browser/component_updater/component_updater_configurator.cc
index 81905957a85a4abbdc0a9b56494884b4474756d3..3297b909d7d383edb8b2b94a0835db74365b42d9 100644
--- a/chrome/browser/component_updater/component_updater_configurator.cc
+++ b/chrome/browser/component_updater/component_updater_configurator.cc
@@ -114,6 +114,7 @@ class ChromeConfigurator : public ComponentUpdateService::Configurator {
virtual int NextCheckDelay() OVERRIDE;
virtual int StepDelay() OVERRIDE;
virtual int MinimumReCheckWait() OVERRIDE;
+ virtual int OnDemandDelay() OVERRIDE;
virtual GURL UpdateUrl(CrxComponent::UrlSource source) OVERRIDE;
virtual const char* ExtraRequestParams() OVERRIDE;
virtual size_t UrlSizeLimit() OVERRIDE;
@@ -152,7 +153,7 @@ ChromeConfigurator::ChromeConfigurator(const CommandLine* cmdline,
}
int ChromeConfigurator::InitialDelay() {
- return fast_update_ ? 1 : (6 * kDelayOneMinute);
+ return fast_update_ ? 1 : (6 * kDelayOneMinute);
}
int ChromeConfigurator::NextCheckDelay() {
@@ -167,6 +168,10 @@ int ChromeConfigurator::MinimumReCheckWait() {
return fast_update_ ? 30 : (6 * kDelayOneHour);
}
+int ChromeConfigurator::OnDemandDelay() {
+ return fast_update_ ? 2 : (30 * kDelayOneMinute);
+}
+
GURL ChromeConfigurator::UpdateUrl(CrxComponent::UrlSource source) {
return GURL(kUrlSources[source]);
}
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/component_updater/component_updater_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698