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

Unified Diff: chrome/browser/search_engines/search_provider_install_data_unittest.cc

Issue 5646003: Sanitize PrefStore interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PrefService mock construction in PrefServiceTest to include command line store. Created 10 years 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/search_engines/search_provider_install_data_unittest.cc
diff --git a/chrome/browser/search_engines/search_provider_install_data_unittest.cc b/chrome/browser/search_engines/search_provider_install_data_unittest.cc
index 0165578ff009914a7b7daef38af87b19dd4826bc..28bcd4726629ad3f4e8a2d4d2c38ebd3b8bd3356 100644
--- a/chrome/browser/search_engines/search_provider_install_data_unittest.cc
+++ b/chrome/browser/search_engines/search_provider_install_data_unittest.cc
@@ -190,19 +190,19 @@ class SearchProviderInstallDataTest : public testing::Test {
void SimulateDefaultSearchIsManaged(const std::string& url) {
ASSERT_FALSE(url.empty());
TestingPrefService* service = util_.profile()->GetTestingPrefService();
- service->SetManagedPrefWithoutNotification(
+ service->SetManagedPref(
prefs::kDefaultSearchProviderEnabled,
Value::CreateBooleanValue(true));
- service->SetManagedPrefWithoutNotification(
+ service->SetManagedPref(
prefs::kDefaultSearchProviderSearchURL,
Value::CreateStringValue(url));
- service->SetManagedPrefWithoutNotification(
+ service->SetManagedPref(
prefs::kDefaultSearchProviderName,
Value::CreateStringValue("managed"));
// Clear the IDs that are not specified via policy.
- service->SetManagedPrefWithoutNotification(
+ service->SetManagedPref(
prefs::kDefaultSearchProviderID, new StringValue(""));
- service->SetManagedPrefWithoutNotification(
+ service->SetManagedPref(
prefs::kDefaultSearchProviderPrepopulateID, new StringValue(""));
util_.model()->Observe(
NotificationType::PREF_CHANGED,

Powered by Google App Engine
This is Rietveld 408576698