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

Unified Diff: chromeos/network/shill_property_handler.cc

Issue 15899015: Add CheckPortalList manager property to NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: force manager property update in shill manager client stub implementation 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/network/shill_property_handler.h ('k') | chromeos/network/shill_property_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/shill_property_handler.cc
diff --git a/chromeos/network/shill_property_handler.cc b/chromeos/network/shill_property_handler.cc
index 81d9221faceb1fb881630098d646a853d0f3f7d8..64ea14dd5356ed6a5e30f09827b901b5746a8e5f 100644
--- a/chromeos/network/shill_property_handler.cc
+++ b/chromeos/network/shill_property_handler.cc
@@ -162,6 +162,17 @@ void ShillPropertyHandler::SetTechnologyEnabled(
}
}
+void ShillPropertyHandler::SetCheckPortalList(
+ const std::string& check_portal_list) {
+ base::StringValue value(check_portal_list);
+ shill_manager_->SetProperty(
+ flimflam::kCheckPortalListProperty,
+ value,
+ base::Bind(&base::DoNothing),
+ base::Bind(&network_handler::ShillErrorCallbackFunction,
+ "", network_handler::ErrorCallback()));
+}
+
void ShillPropertyHandler::RequestScan() const {
shill_manager_->RequestScan(
"",
@@ -296,6 +307,12 @@ bool ShillPropertyHandler::ManagerPropertyChanged(const std::string& key,
}
} else if (key == flimflam::kProfilesProperty) {
listener_->ProfileListChanged();
+ } else if (key == flimflam::kCheckPortalListProperty) {
+ std::string check_portal_list;
+ if (value.GetAsString(&check_portal_list)) {
+ listener_->CheckPortalListChanged(check_portal_list);
+ notify_manager_changed = true;
+ }
}
return notify_manager_changed;
}
« no previous file with comments | « chromeos/network/shill_property_handler.h ('k') | chromeos/network/shill_property_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698