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

Unified Diff: components/password_manager/core/browser/affiliation_fetch_throttler.cc

Issue 1008373003: Integrate throttling logic into AffiliationBackend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment. Created 5 years, 9 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/password_manager/core/browser/affiliation_fetch_throttler.cc
diff --git a/components/password_manager/core/browser/affiliation_fetch_throttler.cc b/components/password_manager/core/browser/affiliation_fetch_throttler.cc
index 571697001db1cf04608c362063e1beb37afeb9fb..50baaaf828d1c3a7821621228fe14c638feb3bf6 100644
--- a/components/password_manager/core/browser/affiliation_fetch_throttler.cc
+++ b/components/password_manager/core/browser/affiliation_fetch_throttler.cc
@@ -75,15 +75,14 @@ const int64_t AffiliationFetchThrottler::kGracePeriodAfterReconnectMs =
AffiliationFetchThrottler::AffiliationFetchThrottler(
AffiliationFetchThrottlerDelegate* delegate,
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
- scoped_ptr<base::TickClock> tick_clock)
+ base::TickClock* tick_clock)
: delegate_(delegate),
task_runner_(task_runner),
+ tick_clock_(tick_clock),
state_(IDLE),
has_network_connectivity_(false),
is_fetch_scheduled_(false),
- tick_clock_(tick_clock.Pass()),
- exponential_backoff_(
- new BackoffEntryImpl(&kBackoffPolicy, tick_clock_.get())),
+ exponential_backoff_(new BackoffEntryImpl(&kBackoffPolicy, tick_clock_)),
weak_ptr_factory_(this) {
DCHECK(delegate);
// Start observing before querying the current connectivity state, so that if

Powered by Google App Engine
This is Rietveld 408576698