| Index: chromeos/dbus/shill_manager_client_stub.cc
|
| diff --git a/chromeos/dbus/shill_manager_client_stub.cc b/chromeos/dbus/shill_manager_client_stub.cc
|
| index b3d3a876551355d622cca2fa667a8ad56ed0ecce..cd406c31166516d111a6f2c1d37c5d24d97faa2a 100644
|
| --- a/chromeos/dbus/shill_manager_client_stub.cc
|
| +++ b/chromeos/dbus/shill_manager_client_stub.cc
|
| @@ -316,12 +316,15 @@ void ShillManagerClientStub::RemoveDevice(const std::string& device_path) {
|
| }
|
|
|
| void ShillManagerClientStub::ClearDevices() {
|
| - stub_properties_.Remove(flimflam::kDevicesProperty, NULL);
|
| + GetListProperty(flimflam::kDevicesProperty)->Clear();
|
| + CallNotifyObserversPropertyChanged(flimflam::kDevicesProperty, 0);
|
| }
|
|
|
| void ShillManagerClientStub::ClearServices() {
|
| - stub_properties_.Remove(flimflam::kServicesProperty, NULL);
|
| - stub_properties_.Remove(flimflam::kServiceWatchListProperty, NULL);
|
| + GetListProperty(flimflam::kServicesProperty)->Clear();
|
| + GetListProperty(flimflam::kServiceWatchListProperty)->Clear();
|
| + CallNotifyObserversPropertyChanged(flimflam::kServicesProperty, 0);
|
| + CallNotifyObserversPropertyChanged(flimflam::kServiceWatchListProperty, 0);
|
| }
|
|
|
| void ShillManagerClientStub::AddService(const std::string& service_path,
|
| @@ -426,6 +429,14 @@ void ShillManagerClientStub::AddGeoNetwork(
|
| list_value->Append(network.DeepCopy());
|
| }
|
|
|
| +void ShillManagerClientStub::AddProfile(const std::string& profile_path) {
|
| + const char* key = flimflam::kProfilesProperty;
|
| + if (GetListProperty(key)->AppendIfNotPresent(
|
| + new base::StringValue(profile_path))) {
|
| + CallNotifyObserversPropertyChanged(key, 0);
|
| + }
|
| +}
|
| +
|
| void ShillManagerClientStub::AddServiceToWatchList(
|
| const std::string& service_path) {
|
| if (GetListProperty(
|
|
|