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

Unified Diff: components/history/core/browser/history_delete_directives_data_type_controller.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/history/core/browser/history_delete_directives_data_type_controller.cc
diff --git a/components/history/core/browser/history_delete_directives_data_type_controller.cc b/components/history/core/browser/history_delete_directives_data_type_controller.cc
index f7a40626a4b8f763b1dc3e0753a704fef07d3fd3..86c0a736d3d421ff2b96402ac74de9cedcffc6e5 100644
--- a/components/history/core/browser/history_delete_directives_data_type_controller.cc
+++ b/components/history/core/browser/history_delete_directives_data_type_controller.cc
@@ -43,7 +43,8 @@ void HistoryDeleteDirectivesDataTypeController::StopModels() {
sync_client_->GetSyncService()->RemoveObserver(this);
}
-void HistoryDeleteDirectivesDataTypeController::OnStateChanged() {
+void HistoryDeleteDirectivesDataTypeController::OnStateChanged(
+ syncer::SyncService* sync) {
DisableTypeIfNecessary();
}

Powered by Google App Engine
This is Rietveld 408576698