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

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

Issue 2471723002: chromeos: networkingPrivate: Set active proxy values (Closed)
Patch Set: Separate out UI changes 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 void NetworkStateHandler::RequestUpdateForNetwork( 359 void NetworkStateHandler::RequestUpdateForNetwork(
360 const std::string& service_path) { 360 const std::string& service_path) {
361 NetworkState* network = GetModifiableNetworkState(service_path); 361 NetworkState* network = GetModifiableNetworkState(service_path);
362 if (network) 362 if (network)
363 network->set_update_requested(true); 363 network->set_update_requested(true);
364 NET_LOG_EVENT("RequestUpdate", service_path); 364 NET_LOG_EVENT("RequestUpdate", service_path);
365 shill_property_handler_->RequestProperties(ManagedState::MANAGED_TYPE_NETWORK, 365 shill_property_handler_->RequestProperties(ManagedState::MANAGED_TYPE_NETWORK,
366 service_path); 366 service_path);
367 } 367 }
368 368
369 void NetworkStateHandler::SendUpdateNotificationForNetwork(
370 const std::string& service_path) {
371 const NetworkState* network = GetNetworkState(service_path);
372 if (!network)
373 return;
374 NotifyNetworkPropertiesUpdated(network);
375 }
376
369 void NetworkStateHandler::ClearLastErrorForNetwork( 377 void NetworkStateHandler::ClearLastErrorForNetwork(
370 const std::string& service_path) { 378 const std::string& service_path) {
371 NetworkState* network = GetModifiableNetworkState(service_path); 379 NetworkState* network = GetModifiableNetworkState(service_path);
372 if (network) 380 if (network)
373 network->clear_last_error(); 381 network->clear_last_error();
374 } 382 }
375 383
376 void NetworkStateHandler::SetCheckPortalList( 384 void NetworkStateHandler::SetCheckPortalList(
377 const std::string& check_portal_list) { 385 const std::string& check_portal_list) {
378 NET_LOG_EVENT("SetCheckPortalList", check_portal_list); 386 NET_LOG_EVENT("SetCheckPortalList", check_portal_list);
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 if (type.MatchesType(shill::kTypeBluetooth)) 994 if (type.MatchesType(shill::kTypeBluetooth))
987 technologies.emplace_back(shill::kTypeBluetooth); 995 technologies.emplace_back(shill::kTypeBluetooth);
988 if (type.MatchesType(shill::kTypeVPN)) 996 if (type.MatchesType(shill::kTypeVPN))
989 technologies.emplace_back(shill::kTypeVPN); 997 technologies.emplace_back(shill::kTypeVPN);
990 998
991 CHECK_GT(technologies.size(), 0ul); 999 CHECK_GT(technologies.size(), 0ul);
992 return technologies; 1000 return technologies;
993 } 1001 }
994 1002
995 } // namespace chromeos 1003 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698