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

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

Issue 1460723004: [Sync] Remove the last datatype-specific deps from sync_driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete outdated comment. Created 5 years 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 3576cbc66405264fb18098f6150107a53a4358dc..5ee4f0bc5d8c7da801d498a7d75338e35aaf7ea8 100644
--- a/components/password_manager/sync/browser/password_data_type_controller.cc
+++ b/components/password_manager/sync/browser/password_data_type_controller.cc
@@ -16,10 +16,12 @@ PasswordDataTypeController::PasswordDataTypeController(
const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
const base::Closure& error_callback,
sync_driver::SyncClient* sync_client,
- const base::Closure& state_changed_callback)
+ const base::Closure& state_changed_callback,
+ const scoped_refptr<password_manager::PasswordStore>& password_store)
: NonUIDataTypeController(ui_thread, error_callback, sync_client),
sync_client_(sync_client),
- state_changed_callback_(state_changed_callback) {}
+ state_changed_callback_(state_changed_callback),
+ password_store_(password_store) {}
syncer::ModelType PasswordDataTypeController::type() const {
return syncer::PASSWORDS;
@@ -48,7 +50,6 @@ bool PasswordDataTypeController::StartModels() {
OnStateChanged();
- password_store_ = sync_client_->GetPasswordStore();
return !!password_store_.get();
}
« no previous file with comments | « components/password_manager/sync/browser/password_data_type_controller.h ('k') | components/sync_driver/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698