summaryrefslogtreecommitdiffstats
path: root/components/variations
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2015-09-24 00:53:00 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-24 07:53:38 +0000
commit8c3eb804c56b7173f00e58e040f47fe867dabda7 (patch)
tree3dee4211092c1942e4eaf24684f3255cfddd9e34 /components/variations
parentf7033f79311149ae641bcaa3986c753f60f1db7e (diff)
downloadchromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.zip
chromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.tar.gz
chromium_src-8c3eb804c56b7173f00e58e040f47fe867dabda7.tar.bz2
base: Template methods on Timer classes instead of the classes themselves.
The base class for OneShotTimer and DelayedTimer is templated but only the Start method needs to be (which has a TODO to make it go away entirely too). The DelayedTimer class is also templated but only its constructor needs to be, and the type can be inferred at the callsite, so less typing all around. R=thakis@chromium.org TBR=sky,brettw BUG=148832 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1355063004 Cr-Commit-Position: refs/heads/master@{#350496}
Diffstat (limited to 'components/variations')
-rw-r--r--components/variations/variations_request_scheduler.h4
-rw-r--r--components/variations/variations_request_scheduler_mobile.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/components/variations/variations_request_scheduler.h b/components/variations/variations_request_scheduler.h
index e564375..c364010 100644
--- a/components/variations/variations_request_scheduler.h
+++ b/components/variations/variations_request_scheduler.h
@@ -57,10 +57,10 @@ class VariationsRequestScheduler {
// The timer used to repeatedly ping the server. Keep this as an instance
// member so if VariationsRequestScheduler goes out of scope, the timer is
// automatically canceled.
- base::RepeatingTimer<VariationsRequestScheduler> timer_;
+ base::RepeatingTimer timer_;
// A one-shot timer used for scheduling out-of-band fetches.
- base::OneShotTimer<VariationsRequestScheduler> one_shot_timer_;
+ base::OneShotTimer one_shot_timer_;
DISALLOW_COPY_AND_ASSIGN(VariationsRequestScheduler);
};
diff --git a/components/variations/variations_request_scheduler_mobile.h b/components/variations/variations_request_scheduler_mobile.h
index 527f70e..96983d5 100644
--- a/components/variations/variations_request_scheduler_mobile.h
+++ b/components/variations/variations_request_scheduler_mobile.h
@@ -39,7 +39,7 @@ class VariationsRequestSchedulerMobile : public VariationsRequestScheduler {
PrefService* local_state_;
// Timer used for triggering a delayed fetch for ScheduleFetch().
- base::OneShotTimer<VariationsRequestSchedulerMobile> schedule_fetch_timer_;
+ base::OneShotTimer schedule_fetch_timer_;
// The time the last seed request was initiated.
base::Time last_request_time_;