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

Unified Diff: chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc

Issue 7647026: base: Add three helper functions to Values API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a typo Ceate -> Create Created 9 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
« no previous file with comments | « chrome/browser/tab_contents/web_contents_unittest.cc ('k') | chrome/browser/ui/shell_dialogs_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc
diff --git a/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc b/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc
index be902dc5610b2daf7c1b2d6fa2c9f2d455d9e84d..0f0ab8c7f22c55f312372d14bc86f2781710f1fa 100644
--- a/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc
@@ -70,20 +70,17 @@ class KeywordEditorControllerTest : public TestingBrowserProcessTest,
void SimulateDefaultSearchIsManaged(const std::string& url) {
ASSERT_FALSE(url.empty());
TestingPrefService* service = profile_->GetTestingPrefService();
- service->SetManagedPref(
- prefs::kDefaultSearchProviderEnabled,
- Value::CreateBooleanValue(true));
- service->SetManagedPref(
- prefs::kDefaultSearchProviderSearchURL,
- Value::CreateStringValue(url));
- service->SetManagedPref(
- prefs::kDefaultSearchProviderName,
- Value::CreateStringValue("managed"));
+ service->SetManagedPref(prefs::kDefaultSearchProviderEnabled,
+ base::TrueValue());
+ service->SetManagedPref(prefs::kDefaultSearchProviderSearchURL,
+ Value::CreateStringValue(url));
+ service->SetManagedPref(prefs::kDefaultSearchProviderName,
+ Value::CreateStringValue("managed"));
// Clear the IDs that are not specified via policy.
- service->SetManagedPref(
- prefs::kDefaultSearchProviderID, new StringValue(""));
- service->SetManagedPref(
- prefs::kDefaultSearchProviderPrepopulateID, new StringValue(""));
+ service->SetManagedPref(prefs::kDefaultSearchProviderID,
+ new StringValue(""));
+ service->SetManagedPref(prefs::kDefaultSearchProviderPrepopulateID,
+ new StringValue(""));
model_->Observe(
chrome::NOTIFICATION_PREF_CHANGED,
Source<PrefService>(profile_->GetTestingPrefService()),
« no previous file with comments | « chrome/browser/tab_contents/web_contents_unittest.cc ('k') | chrome/browser/ui/shell_dialogs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698