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

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

Issue 1129083003: More base::Values-related bare pointer -> scoped_ptr conversions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad merge Created 5 years, 7 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 | « components/policy/core/common/mac_util.cc ('k') | components/policy/core/common/schema_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/registry_dict_win.cc
diff --git a/components/policy/core/common/registry_dict_win.cc b/components/policy/core/common/registry_dict_win.cc
index 964a83fb4678a81c3de8f707f608099894263c29..33a97a09d9950bba1948ae97f55f69519ed9af42 100644
--- a/components/policy/core/common/registry_dict_win.cc
+++ b/components/policy/core/common/registry_dict_win.cc
@@ -63,7 +63,7 @@ scoped_ptr<base::Value> ConvertValue(const base::Value& value,
int int_value = 0;
switch (schema.type()) {
case base::Value::TYPE_NULL: {
- return make_scoped_ptr(base::Value::CreateNullValue()).Pass();
+ return base::Value::CreateNullValue();
}
case base::Value::TYPE_BOOLEAN: {
// Accept booleans encoded as either string or integer.
« no previous file with comments | « components/policy/core/common/mac_util.cc ('k') | components/policy/core/common/schema_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698