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

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller.cc

Issue 317453002: sync: cut a few profile deps from DataTypeControllers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move OnUserShareReady Created 6 years, 6 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: chrome/browser/sync/glue/autofill_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller.cc b/chrome/browser/sync/glue/autofill_data_type_controller.cc
index 406feaf217da88bd98391766e0e477d8b472ce69..6f9ba1cb7ce3cf125e6d087efb75bc9f8acf0659 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller.cc
+++ b/chrome/browser/sync/glue/autofill_data_type_controller.cc
@@ -30,8 +30,8 @@ AutofillDataTypeController::AutofillDataTypeController(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI),
base::Bind(&ChromeReportUnrecoverableError),
profile_sync_factory,
- profile,
- sync_service) {
+ sync_service),
+ profile_(profile) {
}
syncer::ModelType AutofillDataTypeController::type() const {
@@ -66,7 +66,7 @@ bool AutofillDataTypeController::StartModels() {
autofill::AutofillWebDataService* web_data_service =
WebDataServiceFactory::GetAutofillWebDataForProfile(
- profile(), Profile::EXPLICIT_ACCESS).get();
+ profile_, Profile::EXPLICIT_ACCESS).get();
if (!web_data_service)
return false;
@@ -85,7 +85,7 @@ void AutofillDataTypeController::StartAssociating(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK_EQ(state(), MODEL_LOADED);
ProfileSyncService* sync = ProfileSyncServiceFactory::GetForProfile(
- profile());
+ profile_);
DCHECK(sync);
NonUIDataTypeController::StartAssociating(start_callback);
}

Powered by Google App Engine
This is Rietveld 408576698