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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents.cc

Issue 10837363: Introduce AutofillClient and use it to get rid of PasswordManager dependency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, rename stuff. Created 8 years, 4 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/tab_contents/tab_contents.cc
diff --git a/chrome/browser/ui/tab_contents/tab_contents.cc b/chrome/browser/ui/tab_contents/tab_contents.cc
index d1fdb6b5f1724039b0d8ca1dc28552c5de3447a6..bf3ca5c38d6a5583e6e72092d479d7ef8100f494 100644
--- a/chrome/browser/ui/tab_contents/tab_contents.cc
+++ b/chrome/browser/ui/tab_contents/tab_contents.cc
@@ -31,6 +31,7 @@
#include "chrome/browser/sessions/session_service.h"
#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
+#include "chrome/browser/tab_contents/tab_autofill_manager_delegate.h"
#include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
#include "chrome/browser/tab_contents/thumbnail_generator.h"
#include "chrome/browser/translate/translate_tab_helper.h"
@@ -91,7 +92,8 @@ TabContents::TabContents(WebContents* contents)
restore_tab_helper_.reset(new RestoreTabHelper(contents));
autocomplete_history_manager_.reset(new AutocompleteHistoryManager(contents));
- autofill_manager_ = new AutofillManager(this);
+ autofill_delegate_.reset(new TabAutofillManagerDelegate(this));
+ autofill_manager_ = new AutofillManager(autofill_delegate_.get(), this);
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kExternalAutofillPopup)) {
autofill_external_delegate_.reset(

Powered by Google App Engine
This is Rietveld 408576698