| Index: chrome/browser/chromeos/cros/network_library.cc
|
| diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc
|
| index a347ec714b32544bfe482bdd594efcbc1802d900..c4f76d1372ff68edfa91fe8bab74843836b20b5a 100644
|
| --- a/chrome/browser/chromeos/cros/network_library.cc
|
| +++ b/chrome/browser/chromeos/cros/network_library.cc
|
| @@ -177,7 +177,7 @@ void NetworkDevice::ParseInfo(const DictionaryValue& info) {
|
| }
|
|
|
| bool NetworkDevice::UpdateStatus(const std::string& key,
|
| - const Value& value,
|
| + Value* value,
|
| PropertyIndex* index) {
|
| if (device_parser_.get())
|
| return device_parser_->UpdateStatus(key, value, this, index);
|
| @@ -424,7 +424,7 @@ void Network::InitIPAddress() {
|
| }
|
|
|
| bool Network::UpdateStatus(const std::string& key,
|
| - const Value& value,
|
| + Value* value,
|
| PropertyIndex* index) {
|
| if (network_parser_.get())
|
| return network_parser_->UpdateStatus(key, value, this, index);
|
| @@ -2973,13 +2973,14 @@ class NetworkLibraryImplCros : public NetworkLibraryImplBase {
|
| // Calbacks.
|
| static void NetworkStatusChangedHandler(
|
| void* object, const char* path, const char* key, const Value* value);
|
| - void UpdateNetworkStatus(
|
| - const std::string& path, const std::string& key, const Value& value);
|
| + void UpdateNetworkStatus(const std::string& path,
|
| + const std::string& key,
|
| + Value* value);
|
|
|
| static void NetworkDevicePropertyChangedHandler(
|
| void* object, const char* path, const char* key, const Value* value);
|
| void UpdateNetworkDeviceStatus(
|
| - const std::string& path, const std::string& key, const Value& value);
|
| + const std::string& path, const std::string& key, Value* value);
|
|
|
| static void PinOperationCallback(void* object,
|
| const char* path,
|
| @@ -3166,11 +3167,14 @@ void NetworkLibraryImplCros::NetworkStatusChangedHandler(
|
| DCHECK(networklib);
|
| if (key == NULL || value == NULL || path == NULL || object == NULL)
|
| return;
|
| - networklib->UpdateNetworkStatus(std::string(path), std::string(key), *value);
|
| + networklib->UpdateNetworkStatus(std::string(path),
|
| + std::string(key),
|
| + const_cast<Value*>(value));
|
| }
|
|
|
| -void NetworkLibraryImplCros::UpdateNetworkStatus(
|
| - const std::string& path, const std::string& key, const Value& value) {
|
| +void NetworkLibraryImplCros::UpdateNetworkStatus(const std::string& path,
|
| + const std::string& key,
|
| + Value* value) {
|
| CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| Network* network = FindNetworkByPath(path);
|
| if (network) {
|
| @@ -3199,11 +3203,12 @@ void NetworkLibraryImplCros::NetworkDevicePropertyChangedHandler(
|
| return;
|
| networklib->UpdateNetworkDeviceStatus(std::string(path),
|
| std::string(key),
|
| - *value);
|
| + const_cast<Value*>(value));
|
| }
|
|
|
| -void NetworkLibraryImplCros::UpdateNetworkDeviceStatus(
|
| - const std::string& path, const std::string& key, const Value& value) {
|
| +void NetworkLibraryImplCros::UpdateNetworkDeviceStatus(const std::string& path,
|
| + const std::string& key,
|
| + Value* value) {
|
| CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| NetworkDevice* device = FindNetworkDeviceByPath(path);
|
| if (device) {
|
|
|