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

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

Issue 11299122: chrome/browser/ui: Do not use Value::Create* functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 81ac7659840e893f8be434ad216f956f673b9bce..5bc09057b5fb926ae839672b86c5949921bc0d08 100644
--- a/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc
+++ b/chrome/browser/ui/search_engines/keyword_editor_controller_unittest.cc
@@ -70,16 +70,16 @@ class KeywordEditorControllerTest : public testing::Test,
ASSERT_FALSE(url.empty());
TestingPrefService* service = profile_->GetTestingPrefService();
service->SetManagedPref(prefs::kDefaultSearchProviderEnabled,
- Value::CreateBooleanValue(true));
+ new base::FundamentalValue(true));
service->SetManagedPref(prefs::kDefaultSearchProviderSearchURL,
- Value::CreateStringValue(url));
+ new base::StringValue(url));
service->SetManagedPref(prefs::kDefaultSearchProviderName,
- Value::CreateStringValue("managed"));
+ new base::StringValue("managed"));
// Clear the IDs that are not specified via policy.
service->SetManagedPref(prefs::kDefaultSearchProviderID,
- new StringValue(std::string()));
+ new base::StringValue(std::string()));
service->SetManagedPref(prefs::kDefaultSearchProviderPrepopulateID,
- new StringValue(std::string()));
+ new base::StringValue(std::string()));
model_->Observe(chrome::NOTIFICATION_DEFAULT_SEARCH_POLICY_CHANGED,
content::NotificationService::AllSources(),
content::NotificationService::NoDetails());

Powered by Google App Engine
This is Rietveld 408576698