summaryrefslogtreecommitdiffstats
path: root/chrome/browser/component_updater
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-11 01:17:54 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-11 01:17:54 +0000
commit18fd1ade6ea9818fd5484fcb2fc22e306d5cbd4e (patch)
tree788b62c3887b0172d6bc705947b490764db25319 /chrome/browser/component_updater
parent74b407d576a540dacfc1bc5564713ac8105eb2cf (diff)
downloadchromium_src-18fd1ade6ea9818fd5484fcb2fc22e306d5cbd4e.zip
chromium_src-18fd1ade6ea9818fd5484fcb2fc22e306d5cbd4e.tar.gz
chromium_src-18fd1ade6ea9818fd5484fcb2fc22e306d5cbd4e.tar.bz2
Increase the rate at which we check
This is because now that we have several components available, whenever we successfuly download one we would sleep for 4 hours, no matter if other components could be installed. With this change we only sleep for 1 hour, once all components are up-to-date or have no updates we check only after MinimumReCheckWait() So as long there are no components to install the only thing that this change does is to post a task to the UI four times as fast as before, e.g. every hour. BUG=113749 TEST=see bug. Review URL: http://codereview.chromium.org/9380031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121600 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/component_updater')
-rw-r--r--chrome/browser/component_updater/component_updater_configurator.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/component_updater/component_updater_configurator.cc b/chrome/browser/component_updater/component_updater_configurator.cc
index 498042f..e1ed3f5 100644
--- a/chrome/browser/component_updater/component_updater_configurator.cc
+++ b/chrome/browser/component_updater/component_updater_configurator.cc
@@ -152,7 +152,7 @@ int ChromeConfigurator::InitialDelay() {
}
int ChromeConfigurator::NextCheckDelay() {
- return fast_update_ ? 3 : (4 * kDelayOneHour);
+ return fast_update_ ? 3 : (1 * kDelayOneHour);
}
int ChromeConfigurator::StepDelay() {
@@ -160,7 +160,7 @@ int ChromeConfigurator::StepDelay() {
}
int ChromeConfigurator::MinimumReCheckWait() {
- return fast_update_ ? 30 : (6 * kDelayOneHour);
+ return fast_update_ ? 30 : (5 * kDelayOneHour);
}
GURL ChromeConfigurator::UpdateUrl() {