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

Unified Diff: chromeos/network/shill_property_handler.cc

Issue 696583004: Add NetworkHandler support for WakeOnLanEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 6 years, 2 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') | no next file » | 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 f603f52c64f6c72654e755d8a8e2203c16990459..5e3b6fcb9dfcaa75a0a67bed696ed6ca36714a30 100644
--- a/chromeos/network/shill_property_handler.cc
+++ b/chromeos/network/shill_property_handler.cc
@@ -182,7 +182,20 @@ void ShillPropertyHandler::SetCheckPortalList(
base::Bind(&base::DoNothing),
base::Bind(&network_handler::ShillErrorCallbackFunction,
"SetCheckPortalList Failed",
- "", network_handler::ErrorCallback()));
+ "Manager",
+ network_handler::ErrorCallback()));
+}
+
+void ShillPropertyHandler::SetWakeOnLanEnabled(bool enabled) {
+ base::FundamentalValue value(enabled);
+ shill_manager_->SetProperty(
+ shill::kWakeOnLanEnabledProperty,
+ value,
+ base::Bind(&base::DoNothing),
+ base::Bind(&network_handler::ShillErrorCallbackFunction,
+ "SetWakeOnLanEnabled Failed",
+ "Manager",
+ network_handler::ErrorCallback()));
}
void ShillPropertyHandler::RequestScan() const {
« no previous file with comments | « chromeos/network/shill_property_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698