// ShillPropertyChangedObserver overrides.
virtual void OnPropertyChanged(const std::string& key,
- const base::Value& value) OVERRIDE {
+ const base::Value& value) override {
handler_.Run(type_, path_, key, value);
}
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 {
DBusMethodCallStatus call_status,
const base::DictionaryValue& properties) {
if (call_status != DBUS_METHOD_CALL_SUCCESS) {
- NET_LOG_ERROR("Failed to get IP Config properties",
- base::StringPrintf("%s: %d", path.c_str(), call_status));
+ // IP Config properties not availabe. Shill will emit a property change
+ // when they are.
+ NET_LOG_EVENT(
+ base::StringPrintf("Failed to get IP Config properties: %s: %d",
+ ip_config_path.c_str(), call_status), path);
return;
}
NET_LOG_EVENT("IP Config properties received", path);