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

Unified Diff: chrome/browser/ui/webui/supervised_user_internals_message_handler.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/ui/webui/supervised_user_internals_message_handler.cc
diff --git a/chrome/browser/ui/webui/supervised_user_internals_message_handler.cc b/chrome/browser/ui/webui/supervised_user_internals_message_handler.cc
index 63e4126215e0c89ed3db4fa3f0ffaf5c91afe5ad..f9ca895383ec752f1d3511900631b2334a41fab2 100644
--- a/chrome/browser/ui/webui/supervised_user_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/supervised_user_internals_message_handler.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
@@ -245,7 +246,7 @@ void SupervisedUserInternalsMessageHandler::SendSupervisedUserSettings(
const base::DictionaryValue* settings) {
web_ui()->CallJavascriptFunctionUnsafe(
"chrome.supervised_user_internals.receiveUserSettings",
- *(settings ? settings : base::Value::CreateNullValue().get()));
+ *(settings ? settings : base::MakeUnique<base::Value>().get()));
}
void SupervisedUserInternalsMessageHandler::OnTryURLResult(
« no previous file with comments | « chrome/browser/ui/webui/settings/site_settings_handler.cc ('k') | chrome/test/chromedriver/capabilities_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698