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

Unified Diff: components/policy/core/common/mac_util.cc

Issue 388963002: Get rid of the rest of CreateStringValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaks 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: components/policy/core/common/mac_util.cc
diff --git a/components/policy/core/common/mac_util.cc b/components/policy/core/common/mac_util.cc
index 16606905ea834cc49903db8cbe7b9001fbc2fbef..bfa3d6bbb3e00d9d4bd32daa989ea39858bc9117 100644
--- a/components/policy/core/common/mac_util.cc
+++ b/components/policy/core/common/mac_util.cc
@@ -72,7 +72,7 @@ scoped_ptr<base::Value> PropertyToValue(CFPropertyListRef property) {
if (CFStringRef string = CFCast<CFStringRef>(property)) {
return scoped_ptr<base::Value>(
- base::Value::CreateStringValue(base::SysCFStringRefToUTF8(string)));
+ new base::StringValue(base::SysCFStringRefToUTF8(string)));
}
if (CFDictionaryRef dict = CFCast<CFDictionaryRef>(property)) {

Powered by Google App Engine
This is Rietveld 408576698