summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_manager_unittest.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-30 00:33:10 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-30 00:33:10 +0000
commit8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0 (patch)
tree0e00e143095ae775ee1ba1cc886c9142ae06f82f /chrome/browser/autofill/autofill_manager_unittest.cc
parentc1a47df6521776547b5a3a9966dba63aab9e2e6b (diff)
downloadchromium_src-8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0.zip
chromium_src-8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0.tar.gz
chromium_src-8d4cc15e95bdce1ec41b68c2b1cc5685642c39e0.tar.bz2
Introduce AutofillClient and use it to get rid of PasswordManager dependency.
Also, this switches use of InfoBarTabService and PrefServiceBase in AutofillManager from calling their ::ForXyz methods, to retrieving them via AutofillClient. BUG=140037 Review URL: https://chromiumcodereview.appspot.com/10837363 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_manager_unittest.cc')
-rw-r--r--chrome/browser/autofill/autofill_manager_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index abec88c..8aea816f 100644
--- a/chrome/browser/autofill/autofill_manager_unittest.cc
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc
@@ -26,6 +26,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
+#include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tab_contents/test_tab_contents.h"
@@ -442,7 +443,8 @@ class TestAutofillManager : public AutofillManager {
public:
TestAutofillManager(TabContents* tab_contents,
TestPersonalDataManager* personal_data)
- : AutofillManager(tab_contents, personal_data),
+ : AutofillManager(&delegate_, tab_contents, personal_data),
+ delegate_(tab_contents),
personal_data_(personal_data),
autofill_enabled_(true),
did_finish_async_form_submit_(false),
@@ -563,6 +565,8 @@ class TestAutofillManager : public AutofillManager {
// AutofillManager is ref counted.
virtual ~TestAutofillManager() {}
+ TabAutofillManagerDelegate delegate_;
+
// Weak reference.
TestPersonalDataManager* personal_data_;