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

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: Add preliminary userhash retrieval. 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
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(

Powered by Google App Engine
This is Rietveld 408576698