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(); |
} |