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

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

Issue 72613006: Eliminate AutofillWebDataService::FromBrowserContext(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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: chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
diff --git a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
index e0895328ebc90a0d4e866c3515042091c489a0a0..6c435e5aad11cefedbd12b8a9b7b7b77e6c1f63f 100644
--- a/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
+++ b/chrome/browser/sync/glue/autofill_profile_data_type_controller.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_components_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "content/public/browser/browser_thread.h"
@@ -51,7 +52,8 @@ void AutofillProfileDataTypeController::OnPersonalDataChanged() {
personal_data_->RemoveObserver(this);
autofill::AutofillWebDataService* web_data_service =
- autofill::AutofillWebDataService::FromBrowserContext(profile()).get();
+ WebDataServiceFactory::GetAutofillWebDataForProfile(
+ profile(), Profile::EXPLICIT_ACCESS).get();
if (!web_data_service)
return;
@@ -88,7 +90,8 @@ bool AutofillProfileDataTypeController::StartModels() {
}
autofill::AutofillWebDataService* web_data_service =
- AutofillWebDataService::FromBrowserContext(profile()).get();
+ WebDataServiceFactory::GetAutofillWebDataForProfile(
+ profile(), Profile::EXPLICIT_ACCESS).get();
if (!web_data_service)
return false;

Powered by Google App Engine
This is Rietveld 408576698