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

Unified Diff: chrome/browser/content_settings/content_settings_policy_provider_unittest.cc

Issue 388963002: Get rid of the rest of CreateStringValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad rebase Created 6 years, 5 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
Index: chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
diff --git a/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc b/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
index 581094b3ad0bcb9df4a9c82df65eb61056f57b93..852b395a564ee12904c72b813b8d83fc492083a7 100644
--- a/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
+++ b/chrome/browser/content_settings/content_settings_policy_provider_unittest.cc
@@ -138,7 +138,7 @@ TEST_F(PolicyProviderTest, GettingManagedContentSettings) {
TestingPrefServiceSyncable* prefs = profile.GetTestingPrefService();
base::ListValue* value = new base::ListValue();
- value->Append(base::Value::CreateStringValue("[*.]google.com"));
+ value->Append(new base::StringValue("[*.]google.com"));
prefs->SetManagedPref(prefs::kManagedImagesBlockedForUrls,
value);
@@ -210,7 +210,7 @@ TEST_F(PolicyProviderTest, ResourceIdentifier) {
TestingPrefServiceSyncable* prefs = profile.GetTestingPrefService();
base::ListValue* value = new base::ListValue();
- value->Append(base::Value::CreateStringValue("[*.]google.com"));
+ value->Append(new base::StringValue("[*.]google.com"));
prefs->SetManagedPref(prefs::kManagedPluginsAllowedForUrls,
value);
@@ -263,8 +263,8 @@ TEST_F(PolicyProviderTest, AutoSelectCertificateList) {
std::string pattern_str("\"pattern\":\"[*.]google.com\"");
std::string filter_str("\"filter\":{\"ISSUER\":{\"CN\":\"issuer name\"}}");
base::ListValue* value = new base::ListValue();
- value->Append(base::Value::CreateStringValue(
- "{" + pattern_str + "," + filter_str + "}"));
+ value->Append(
+ new base::StringValue("{" + pattern_str + "," + filter_str + "}"));
prefs->SetManagedPref(prefs::kManagedAutoSelectCertificateForUrls,
value);
GURL youtube_url("https://www.youtube.com");

Powered by Google App Engine
This is Rietveld 408576698