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

Unified Diff: components/password_manager/sync/browser/password_data_type_controller.cc

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Chromeos fix 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/password_manager/sync/browser/password_data_type_controller.cc
diff --git a/components/password_manager/sync/browser/password_data_type_controller.cc b/components/password_manager/sync/browser/password_data_type_controller.cc
index 12c35f38c90e6b0d3aacc06b90444aa8168e2104..ad1270b1eb8e95d1e98a1ce2daa70baa11f656c3 100644
--- a/components/password_manager/sync/browser/password_data_type_controller.cc
+++ b/components/password_manager/sync/browser/password_data_type_controller.cc
@@ -43,7 +43,7 @@ bool PasswordDataTypeController::StartModels() {
sync_client_->GetSyncService()->AddObserver(this);
- OnStateChanged();
+ OnStateChanged(sync_client_->GetSyncService());
return !!password_store_.get();
}
@@ -53,7 +53,7 @@ void PasswordDataTypeController::StopModels() {
sync_client_->GetSyncService()->RemoveObserver(this);
}
-void PasswordDataTypeController::OnStateChanged() {
+void PasswordDataTypeController::OnStateChanged(syncer::SyncService* sync) {
DCHECK(CalledOnValidThread());
state_changed_callback_.Run();
}

Powered by Google App Engine
This is Rietveld 408576698