| Index: chromeos/dbus/fake_shill_manager_client.cc
|
| diff --git a/chromeos/dbus/fake_shill_manager_client.cc b/chromeos/dbus/fake_shill_manager_client.cc
|
| index 226a77836e1e5d66f57af8038d35f1d5393abc13..50b8488605f6853d30223de1b3a0b1bbc5329ce9 100644
|
| --- a/chromeos/dbus/fake_shill_manager_client.cc
|
| +++ b/chromeos/dbus/fake_shill_manager_client.cc
|
| @@ -360,8 +360,8 @@ ShillManagerClient::TestInterface* FakeShillManagerClient::GetTestInterface() {
|
| // ShillManagerClient::TestInterface overrides.
|
|
|
| void FakeShillManagerClient::AddDevice(const std::string& device_path) {
|
| - if (GetListProperty(shill::kDevicesProperty)->AppendIfNotPresent(
|
| - base::Value::CreateStringValue(device_path))) {
|
| + if (GetListProperty(shill::kDevicesProperty)
|
| + ->AppendIfNotPresent(new base::StringValue(device_path))) {
|
| CallNotifyObserversPropertyChanged(shill::kDevicesProperty);
|
| }
|
| }
|
| @@ -381,14 +381,14 @@ void FakeShillManagerClient::ClearDevices() {
|
|
|
| void FakeShillManagerClient::AddTechnology(const std::string& type,
|
| bool enabled) {
|
| - if (GetListProperty(shill::kAvailableTechnologiesProperty)->
|
| - AppendIfNotPresent(base::Value::CreateStringValue(type))) {
|
| + if (GetListProperty(shill::kAvailableTechnologiesProperty)
|
| + ->AppendIfNotPresent(new base::StringValue(type))) {
|
| CallNotifyObserversPropertyChanged(
|
| shill::kAvailableTechnologiesProperty);
|
| }
|
| if (enabled &&
|
| - GetListProperty(shill::kEnabledTechnologiesProperty)->
|
| - AppendIfNotPresent(base::Value::CreateStringValue(type))) {
|
| + GetListProperty(shill::kEnabledTechnologiesProperty)
|
| + ->AppendIfNotPresent(new base::StringValue(type))) {
|
| CallNotifyObserversPropertyChanged(
|
| shill::kEnabledTechnologiesProperty);
|
| }
|
| @@ -411,8 +411,8 @@ void FakeShillManagerClient::RemoveTechnology(const std::string& type) {
|
| void FakeShillManagerClient::SetTechnologyInitializing(const std::string& type,
|
| bool initializing) {
|
| if (initializing) {
|
| - if (GetListProperty(shill::kUninitializedTechnologiesProperty)->
|
| - AppendIfNotPresent(base::Value::CreateStringValue(type))) {
|
| + if (GetListProperty(shill::kUninitializedTechnologiesProperty)
|
| + ->AppendIfNotPresent(new base::StringValue(type))) {
|
| CallNotifyObserversPropertyChanged(
|
| shill::kUninitializedTechnologiesProperty);
|
| }
|
| @@ -459,8 +459,8 @@ void FakeShillManagerClient::AddManagerService(
|
| const std::string& service_path,
|
| bool notify_observers) {
|
| DVLOG(2) << "AddManagerService: " << service_path;
|
| - GetListProperty(shill::kServiceCompleteListProperty)->AppendIfNotPresent(
|
| - base::Value::CreateStringValue(service_path));
|
| + GetListProperty(shill::kServiceCompleteListProperty)
|
| + ->AppendIfNotPresent(new base::StringValue(service_path));
|
| SortManagerServices(false);
|
| if (notify_observers)
|
| CallNotifyObserversPropertyChanged(shill::kServiceCompleteListProperty);
|
|
|