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

Side by Side Diff: chromeos/network/shill_property_handler.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/network/shill_property_handler.h" 5 #include "chromeos/network/shill_property_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 const std::string& check_portal_list) { 214 const std::string& check_portal_list) {
215 base::StringValue value(check_portal_list); 215 base::StringValue value(check_portal_list);
216 shill_manager_->SetProperty( 216 shill_manager_->SetProperty(
217 shill::kCheckPortalListProperty, value, base::Bind(&base::DoNothing), 217 shill::kCheckPortalListProperty, value, base::Bind(&base::DoNothing),
218 base::Bind(&network_handler::ShillErrorCallbackFunction, 218 base::Bind(&network_handler::ShillErrorCallbackFunction,
219 "SetCheckPortalList Failed", "Manager", 219 "SetCheckPortalList Failed", "Manager",
220 network_handler::ErrorCallback())); 220 network_handler::ErrorCallback()));
221 } 221 }
222 222
223 void ShillPropertyHandler::SetWakeOnLanEnabled(bool enabled) { 223 void ShillPropertyHandler::SetWakeOnLanEnabled(bool enabled) {
224 base::FundamentalValue value(enabled); 224 base::Value value(enabled);
225 shill_manager_->SetProperty( 225 shill_manager_->SetProperty(
226 shill::kWakeOnLanEnabledProperty, value, base::Bind(&base::DoNothing), 226 shill::kWakeOnLanEnabledProperty, value, base::Bind(&base::DoNothing),
227 base::Bind(&network_handler::ShillErrorCallbackFunction, 227 base::Bind(&network_handler::ShillErrorCallbackFunction,
228 "SetWakeOnLanEnabled Failed", "Manager", 228 "SetWakeOnLanEnabled Failed", "Manager",
229 network_handler::ErrorCallback())); 229 network_handler::ErrorCallback()));
230 } 230 }
231 231
232 void ShillPropertyHandler::SetNetworkThrottlingStatus( 232 void ShillPropertyHandler::SetNetworkThrottlingStatus(
233 bool throttling_enabled, 233 bool throttling_enabled,
234 uint32_t upload_rate_kbits, 234 uint32_t upload_rate_kbits,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 NET_LOG(EVENT) << "Failed to get IP Config properties: " << ip_config_path 565 NET_LOG(EVENT) << "Failed to get IP Config properties: " << ip_config_path
566 << ": " << call_status << ", For: " << path; 566 << ": " << call_status << ", For: " << path;
567 return; 567 return;
568 } 568 }
569 NET_LOG(EVENT) << "IP Config properties received: " << path; 569 NET_LOG(EVENT) << "IP Config properties received: " << path;
570 listener_->UpdateIPConfigProperties(type, path, ip_config_path, properties); 570 listener_->UpdateIPConfigProperties(type, path, ip_config_path, properties);
571 } 571 }
572 572
573 } // namespace internal 573 } // namespace internal
574 } // namespace chromeos 574 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_translator_shill_to_onc.cc ('k') | chromeos/network/shill_property_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698