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

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

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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/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 3e8b8e4772238411270d6885d6531d94e1db3874..bc069298cc528f7e89d0552f6fa154cd032fddbf 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -22,8 +22,10 @@
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/chrome_pages.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/common/url_constants.h"
#include "components/autofill/browser/password_generator.h"
+#include "components/autofill/browser/webdata/autofill_webdata_service.h"
#include "content/public/browser/web_contents_view.h"
#include "content/public/common/password_form.h"
#include "ui/gfx/rect.h"
@@ -43,6 +45,13 @@ TabAutofillManagerDelegate::~TabAutofillManagerDelegate() {
HideAutofillPopup();
}
+scoped_refptr<AutofillWebDataService>
+TabAutofillManagerDelegate::GetAutofillWebDataService() {
+ Profile* profile =
+ Profile::FromBrowserContext(web_contents_->GetBrowserContext());
+ return WebDataServiceFactory::GetAutofillWebDataServiceForProfile(profile);
+}
+
PersonalDataManager* TabAutofillManagerDelegate::GetPersonalDataManager() {
Profile* profile =
Profile::FromBrowserContext(web_contents_->GetBrowserContext());

Powered by Google App Engine
This is Rietveld 408576698