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

Unified Diff: chrome/browser/metrics/variations/variations_request_scheduler.cc

Issue 17392007: Merge 207068 "Fix VariationsRequestScheduler::ScheduleFetchShort..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/variations/variations_request_scheduler.cc
===================================================================
--- chrome/browser/metrics/variations/variations_request_scheduler.cc (revision 207076)
+++ chrome/browser/metrics/variations/variations_request_scheduler.cc (working copy)
@@ -27,13 +27,13 @@
}
void VariationsRequestScheduler::ScheduleFetchShortly() {
+ // Reset the regular timer to avoid it triggering soon after.
+ Reset();
// The delay before attempting a fetch shortly, in minutes.
const int kFetchShortlyDelayMinutes = 5;
one_shot_timer_.Start(FROM_HERE,
base::TimeDelta::FromMinutes(kFetchShortlyDelayMinutes),
task_);
- // Reset the regular timer to avoid it triggering soon after.
- Reset();
}
base::Closure VariationsRequestScheduler::task() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698