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

Unified Diff: components/component_updater/configurator_impl.cc

Issue 2179593003: fast-update flag only accelerates the first component update check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fast-update
Patch Set: Created 4 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
Index: components/component_updater/configurator_impl.cc
diff --git a/components/component_updater/configurator_impl.cc b/components/component_updater/configurator_impl.cc
index c4cb5fae555c6271bf4f65d9af3541420fc04ec6..9c4b68cab1a0acda604c87f7b89d2a55e7ebc584 100644
--- a/components/component_updater/configurator_impl.cc
+++ b/components/component_updater/configurator_impl.cc
@@ -33,7 +33,7 @@ const int kDelayOneHour = kDelayOneMinute * 60;
// Debug values you can pass to --component-updater=value1,value2. Do not
// use these values in production code.
-// Speed up component checking.
+// Speed up the initial component checking.
const char kSwitchFastUpdate[] = "fast-update";
// Add "testrequest=1" attribute to the update check request.
@@ -126,7 +126,7 @@ int ConfiguratorImpl::InitialDelay() const {
}
int ConfiguratorImpl::NextCheckDelay() const {
- return fast_update_ ? 60 : (6 * kDelayOneHour);
+ return 6 * kDelayOneHour;
}
int ConfiguratorImpl::StepDelay() const {

Powered by Google App Engine
This is Rietveld 408576698