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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 16286020: Abstract WebContentsObserver from Autofill shared code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to fix conflict Created 7 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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | chrome/browser/autofill/autofill_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index f40622656291deebbc6b4ca33f961a147cdb02af..010b37628f9f3c79372b7962787ef234b082485c 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -26,8 +26,7 @@
#include "chrome/browser/ui/prefs/prefs_tab_helper.h"
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
#include "chrome/browser/ui/toolbar/toolbar_model_impl.h"
-#include "components/autofill/browser/autofill_external_delegate.h"
-#include "components/autofill/browser/autofill_manager.h"
+#include "components/autofill/content/browser/autofill_driver_impl.h"
#include "content/public/browser/android/content_view_core.h"
#include "content/public/browser/web_contents.h"
#include "extensions/browser/view_type_utils.h"
@@ -62,15 +61,12 @@ void BrowserTabContents::AttachTabHelpers(WebContents* contents) {
AlternateErrorPageTabObserver::CreateForWebContents(contents);
autofill::TabAutofillManagerDelegate::CreateForWebContents(contents);
- autofill::AutofillManager::CreateForWebContentsAndDelegate(
+ autofill::AutofillDriverImpl::CreateForWebContentsAndDelegate(
contents,
autofill::TabAutofillManagerDelegate::FromWebContents(contents),
g_browser_process->GetApplicationLocale(),
- autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
- autofill::AutofillExternalDelegate::CreateForWebContentsAndManager(
- contents, autofill::AutofillManager::FromWebContents(contents));
- autofill::AutofillManager::FromWebContents(contents)->SetExternalDelegate(
- autofill::AutofillExternalDelegate::FromWebContents(contents));
+ autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER,
+ true);
BlockedContentTabHelper::CreateForWebContents(contents);
BookmarkTabHelper::CreateForWebContents(contents);
CoreTabHelper::CreateForWebContents(contents);
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | chrome/browser/autofill/autofill_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698