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

Unified Diff: components/browsing_data/core/counters/history_counter.cc

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Use parameter Created 3 years, 11 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/browsing_data/core/counters/history_counter.cc
diff --git a/components/browsing_data/core/counters/history_counter.cc b/components/browsing_data/core/counters/history_counter.cc
index c1c44512ba0dcf2b820ef9a1f1220f58346c123c..daf801073c250aceb7a3f26b8986fdb4a5e8b708 100644
--- a/components/browsing_data/core/counters/history_counter.cc
+++ b/components/browsing_data/core/counters/history_counter.cc
@@ -158,7 +158,7 @@ HistoryCounter::HistoryResult::HistoryResult(const HistoryCounter* source,
HistoryCounter::HistoryResult::~HistoryResult() {}
-void HistoryCounter::OnStateChanged() {
+void HistoryCounter::OnStateChanged(syncer::SyncService* sync) {
bool history_sync_enabled_new_state = !!web_history_service_callback_.Run();
// If the history sync was just enabled or disabled, restart the counter

Powered by Google App Engine
This is Rietveld 408576698