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

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

Issue 2471723002: chromeos: networkingPrivate: Set active proxy values (Closed)
Patch Set: Fix test expectations 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/network_state_handler.h" 5 #include "chromeos/network/network_state_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 void NetworkStateHandler::RequestUpdateForNetwork( 358 void NetworkStateHandler::RequestUpdateForNetwork(
359 const std::string& service_path) { 359 const std::string& service_path) {
360 NetworkState* network = GetModifiableNetworkState(service_path); 360 NetworkState* network = GetModifiableNetworkState(service_path);
361 if (network) 361 if (network)
362 network->set_update_requested(true); 362 network->set_update_requested(true);
363 NET_LOG_EVENT("RequestUpdate", service_path); 363 NET_LOG_EVENT("RequestUpdate", service_path);
364 shill_property_handler_->RequestProperties(ManagedState::MANAGED_TYPE_NETWORK, 364 shill_property_handler_->RequestProperties(ManagedState::MANAGED_TYPE_NETWORK,
365 service_path); 365 service_path);
366 } 366 }
367 367
368 void NetworkStateHandler::SendUpdateNotificationForNetwork(
369 const std::string& service_path) {
370 const NetworkState* network = GetNetworkState(service_path);
371 if (!network)
372 return;
373 NotifyNetworkPropertiesUpdated(network);
374 }
375
368 void NetworkStateHandler::ClearLastErrorForNetwork( 376 void NetworkStateHandler::ClearLastErrorForNetwork(
369 const std::string& service_path) { 377 const std::string& service_path) {
370 NetworkState* network = GetModifiableNetworkState(service_path); 378 NetworkState* network = GetModifiableNetworkState(service_path);
371 if (network) 379 if (network)
372 network->clear_last_error(); 380 network->clear_last_error();
373 } 381 }
374 382
375 void NetworkStateHandler::SetCheckPortalList( 383 void NetworkStateHandler::SetCheckPortalList(
376 const std::string& check_portal_list) { 384 const std::string& check_portal_list) {
377 NET_LOG_EVENT("SetCheckPortalList", check_portal_list); 385 NET_LOG_EVENT("SetCheckPortalList", check_portal_list);
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 if (type.MatchesType(shill::kTypeBluetooth)) 1005 if (type.MatchesType(shill::kTypeBluetooth))
998 technologies.emplace_back(shill::kTypeBluetooth); 1006 technologies.emplace_back(shill::kTypeBluetooth);
999 if (type.MatchesType(shill::kTypeVPN)) 1007 if (type.MatchesType(shill::kTypeVPN))
1000 technologies.emplace_back(shill::kTypeVPN); 1008 technologies.emplace_back(shill::kTypeVPN);
1001 1009
1002 CHECK_GT(technologies.size(), 0ul); 1010 CHECK_GT(technologies.size(), 0ul);
1003 return technologies; 1011 return technologies;
1004 } 1012 }
1005 1013
1006 } // namespace chromeos 1014 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/network/network_state_handler.h ('k') | chromeos/network/proxy/ui_proxy_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698