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

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

Issue 2792573002: Remove base::Value::CreateNullValue (Closed)
Patch Set: Rebase Created 3 years, 8 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/registry_dict.cc
diff --git a/components/policy/core/common/registry_dict.cc b/components/policy/core/common/registry_dict.cc
index 29c9df73133d7ec59a75f9a95b936961b18a4f2e..f4219042ab507f656d7bffe365b8735eb40bb803 100644
--- a/components/policy/core/common/registry_dict.cc
+++ b/components/policy/core/common/registry_dict.cc
@@ -76,7 +76,7 @@ std::unique_ptr<base::Value> ConvertValue(const base::Value& value,
int int_value = 0;
switch (schema.type()) {
case base::Value::Type::NONE: {
- return base::Value::CreateNullValue();
+ return base::MakeUnique<base::Value>();
}
case base::Value::Type::BOOLEAN: {
// Accept booleans encoded as either string or integer.
« no previous file with comments | « components/policy/core/common/policy_loader_win_unittest.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