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

Unified Diff: components/policy/core/browser/android/policy_converter.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/browser/android/policy_converter.cc
diff --git a/components/policy/core/browser/android/policy_converter.cc b/components/policy/core/browser/android/policy_converter.cc
index 9460fa22cd99620fd85496f2ffc50363d9030fc4..c775a961b08370672c04bcf5460b94b05b29dfdd 100644
--- a/components/policy/core/browser/android/policy_converter.cc
+++ b/components/policy/core/browser/android/policy_converter.cc
@@ -113,7 +113,7 @@ std::unique_ptr<base::Value> PolicyConverter::ConvertValueToSchema(
switch (schema.type()) {
case base::Value::Type::NONE:
- return base::Value::CreateNullValue();
+ return base::MakeUnique<base::Value>();
case base::Value::Type::BOOLEAN: {
std::string string_value;
« no previous file with comments | « components/json_schema/json_schema_validator_unittest_base.cc ('k') | components/policy/core/common/mac_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698