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

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

Issue 49303005: Parameterize the PrefService that AutofillDownloadManager uses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extraneous diff 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
« no previous file with comments | « no previous file | components/autofill/DEPS » ('j') | components/autofill/core/browser/autofill_download.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
index 057f0a7eab45e939be705b9479292236f201eed9..f442d3c5f33696da6e6656b6e834f62fc2b2eb1a 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc
@@ -4,11 +4,11 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/prefs/testing_pref_service.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
#include "chrome/browser/ui/autofill/autofill_popup_view.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
+#include "chrome/test/base/testing_pref_service_syncable.h"
#include "chrome/test/base/testing_profile.h"
#include "components/autofill/content/browser/autofill_driver_impl.h"
#include "components/autofill/core/browser/autofill_external_delegate.h"
@@ -56,8 +56,12 @@ class MockAutofillManagerDelegate
virtual PrefService* GetPrefs() OVERRIDE { return &prefs_; }
+ user_prefs::PrefRegistrySyncable* GetPrefRegistry() {
+ return prefs_.registry();
+ }
+
private:
- TestingPrefServiceSimple prefs_;
+ TestingPrefServiceSyncable prefs_;
Ilya Sherman 2013/11/05 00:17:04 Hmm, why is this change needed here, but not for t
blundell 2013/11/05 15:26:54 It's needed here because this test is using a manu
DISALLOW_COPY_AND_ASSIGN(MockAutofillManagerDelegate);
};
@@ -127,6 +131,8 @@ class AutofillPopupControllerUnitTest : public ChromeRenderViewHostTestHarness {
virtual void SetUp() OVERRIDE {
ChromeRenderViewHostTestHarness::SetUp();
+ AutofillManager::RegisterProfilePrefs(manager_delegate_->GetPrefRegistry());
+
AutofillDriverImpl::CreateForWebContentsAndDelegate(
web_contents(),
manager_delegate_.get(),
« no previous file with comments | « no previous file | components/autofill/DEPS » ('j') | components/autofill/core/browser/autofill_download.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698