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", |