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

Unified Diff: remoting/host/setup/me2me_native_messaging_host.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: remoting/host/setup/me2me_native_messaging_host.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host.cc b/remoting/host/setup/me2me_native_messaging_host.cc
index 74844d6db868d70ce098ea3bfabe47a3b676cd0e..79db06a350b72ff8a891d1a1e9085d4c11d43ff5 100644
--- a/remoting/host/setup/me2me_native_messaging_host.cc
+++ b/remoting/host/setup/me2me_native_messaging_host.cc
@@ -16,6 +16,7 @@
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/stringize_macros.h"
#include "base/time/time.h"
@@ -457,7 +458,7 @@ void Me2MeNativeMessagingHost::SendConfigResponse(
if (config) {
response->Set("config", config.release());
} else {
- response->Set("config", base::Value::CreateNullValue());
+ response->Set("config", base::MakeUnique<base::Value>());
}
SendMessageToClient(std::move(response));
}
« no previous file with comments | « net/test/spawned_test_server/remote_test_server.cc ('k') | services/preferences/tracked/pref_hash_calculator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698