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

Side by Side Diff: chrome/browser/signin/cross_device_promo.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/sessions/tab_loader.h ('k') | chrome/browser/spellchecker/feedback_sender.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_
6 #define CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ 6 #define CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool is_throttled_; 222 bool is_throttled_;
223 223
224 // Metric to help us track how long a browsing session is. This is set in 224 // Metric to help us track how long a browsing session is. This is set in
225 // MaybeBrowsingSessionStarted(), see that method for details. 225 // MaybeBrowsingSessionStarted(), see that method for details.
226 // Useful for configuring the field trial to manage our server quota. 226 // Useful for configuring the field trial to manage our server quota.
227 base::Time start_last_browsing_session_; 227 base::Time start_last_browsing_session_;
228 228
229 // Used to delay the check of device activity. See 229 // Used to delay the check of device activity. See
230 // OnFetchDeviceActivitySuccess() or MaybeBrowsingSessionStarted(), as well as 230 // OnFetchDeviceActivitySuccess() or MaybeBrowsingSessionStarted(), as well as
231 // |delay_until_next_device_activity_fetch_|, for details. 231 // |delay_until_next_device_activity_fetch_|, for details.
232 base::OneShotTimer<CrossDevicePromo> device_activity_timer_; 232 base::OneShotTimer device_activity_timer_;
233 233
234 DISALLOW_COPY_AND_ASSIGN(CrossDevicePromo); 234 DISALLOW_COPY_AND_ASSIGN(CrossDevicePromo);
235 }; 235 };
236 236
237 #endif // CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ 237 #endif // CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/tab_loader.h ('k') | chrome/browser/spellchecker/feedback_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698