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

Unified Diff: chrome/browser/policy/test/local_policy_test_server.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: chrome/browser/policy/test/local_policy_test_server.cc
diff --git a/chrome/browser/policy/test/local_policy_test_server.cc b/chrome/browser/policy/test/local_policy_test_server.cc
index a3bf21a29e38171b58531e7c9f9979809a1f72fe..0f9a9d9a46c2ce9dfd8775582f170c4b71b8ec7f 100644
--- a/chrome/browser/policy/test/local_policy_test_server.cc
+++ b/chrome/browser/policy/test/local_policy_test_server.cc
@@ -13,6 +13,7 @@
#include "base/base_paths.h"
#include "base/files/file_util.h"
#include "base/json/json_writer.h"
+#include "base/memory/ptr_util.h"
#include "base/numerics/safe_conversions.h"
#include "base/path_service.h"
#include "base/strings/stringprintf.h"
@@ -245,7 +246,7 @@ bool LocalPolicyTestServer::GenerateAdditionalArguments(
arguments->SetString("policy-key", policy_key_.AsUTF8Unsafe());
if (automatic_rotation_of_signing_keys_enabled_) {
arguments->Set("rotate-policy-keys-automatically",
- base::Value::CreateNullValue());
+ base::MakeUnique<base::Value>());
}
if (server_data_dir_.IsValid()) {
arguments->SetString("data-dir", server_data_dir_.GetPath().AsUTF8Unsafe());

Powered by Google App Engine
This is Rietveld 408576698