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

Unified Diff: chrome/browser/search_engines/keyword_editor_controller_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/keyword_editor_controller_unittest.cc
diff --git a/chrome/browser/search_engines/keyword_editor_controller_unittest.cc b/chrome/browser/search_engines/keyword_editor_controller_unittest.cc
index e29373ea2dafe9014518d08f520d39959100f235..df49cf00dd1a1e26f936b63ddfa955dcf8996615 100644
--- a/chrome/browser/search_engines/keyword_editor_controller_unittest.cc
+++ b/chrome/browser/search_engines/keyword_editor_controller_unittest.cc
@@ -68,19 +68,19 @@ class KeywordEditorControllerTest : public testing::Test,
void SimulateDefaultSearchIsManaged(const std::string& url) {
ASSERT_FALSE(url.empty());
TestingPrefService* service = 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(""));
model_->Observe(
NotificationType::PREF_CHANGED,
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/search_engines/search_provider_install_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698