Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: chromeos/dbus/shill_manager_client_stub.cc

Issue 13957012: Adding a NetworkProfileHandler used by ManagedNetworkConfigurationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.h ('k') | chromeos/dbus/shill_profile_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chromeos/dbus/shill_manager_client_stub.h ('k') | chromeos/dbus/shill_profile_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698