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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc

Issue 1129083003: More base::Values-related bare pointer -> scoped_ptr conversions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad merge Created 5 years, 7 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/local_discovery/local_discovery_ui_handler.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
index 4a0c70c17b8a743cd0088fee68d4b70bfbb6c289..5c32f9a6871788897623f70eb05890cfd5fdbe5e 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
@@ -370,7 +370,7 @@ void LocalDiscoveryUIHandler::DeviceChanged(
web_ui()->CallJavascriptFunction(
"local_discovery.onUnregisteredDeviceUpdate", service_key, info);
} else {
- scoped_ptr<base::Value> null_value(base::Value::CreateNullValue());
+ scoped_ptr<base::Value> null_value = base::Value::CreateNullValue();
web_ui()->CallJavascriptFunction(
"local_discovery.onUnregisteredDeviceUpdate", service_key, *null_value);
@@ -379,7 +379,7 @@ void LocalDiscoveryUIHandler::DeviceChanged(
void LocalDiscoveryUIHandler::DeviceRemoved(const std::string& name) {
device_descriptions_.erase(name);
- scoped_ptr<base::Value> null_value(base::Value::CreateNullValue());
+ scoped_ptr<base::Value> null_value = base::Value::CreateNullValue();
base::StringValue name_value(kKeyPrefixMDns + name);
web_ui()->CallJavascriptFunction("local_discovery.onUnregisteredDeviceUpdate",

Powered by Google App Engine
This is Rietveld 408576698