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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

Issue 71683003: Have AutofillManagerDelegate supply the AutofillWebDataService to core code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 7 years, 1 month 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/ui/autofill/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 3460ba7331703234a4cdbea6bcba06a543a45ef5..e922e5be771080537c7001c56c28568ab3a2732f 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -60,6 +60,12 @@ PersonalDataManager* TabAutofillManagerDelegate::GetPersonalDataManager() {
profile->GetOriginalProfile());
}
+scoped_refptr<AutofillWebDataService>
+ TabAutofillManagerDelegate::GetDatabase() {
+ return AutofillWebDataService::FromBrowserContext(
+ web_contents_->GetBrowserContext());
+}
+
PrefService* TabAutofillManagerDelegate::GetPrefs() {
return Profile::FromBrowserContext(web_contents_->GetBrowserContext())->
GetPrefs();

Powered by Google App Engine
This is Rietveld 408576698