| 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 d77dab6f33e550d307d5513d9034070e4461def8..d47169ef6c9a1df880c85d86d123714d11d53290 100644
|
| --- a/chromeos/dbus/shill_manager_client_stub.cc
|
| +++ b/chromeos/dbus/shill_manager_client_stub.cc
|
| @@ -329,12 +329,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,
|
| @@ -439,6 +442,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(
|
|
|