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

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

Issue 23872021: Use Name not SSID in CopyIdentifyingProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Eliminate CopyIdentifyingProperties Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_connection_handler.h" 5 #include "chromeos/network/network_connection_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "chromeos/chromeos_switches.h" 10 #include "chromeos/chromeos_switches.h"
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 client_cert::SetShillProperties(client_cert_type, 447 client_cert::SetShillProperties(client_cert_type,
448 cert_loader_->tpm_token_slot(), 448 cert_loader_->tpm_token_slot(),
449 cert_loader_->tpm_user_pin(), 449 cert_loader_->tpm_user_pin(),
450 pkcs11_id.empty() ? NULL : &pkcs11_id, 450 pkcs11_id.empty() ? NULL : &pkcs11_id,
451 &config_properties); 451 &config_properties);
452 } 452 }
453 } 453 }
454 454
455 if (!config_properties.empty()) { 455 if (!config_properties.empty()) {
456 NET_LOG_EVENT("Configuring Network", service_path); 456 NET_LOG_EVENT("Configuring Network", service_path);
457 if (shill_property_util::CopyIdentifyingProperties(service_properties, 457 network_configuration_handler_->SetProperties(
pneubeck (no reviews) 2013/09/14 16:04:25 ha! yes that makes more sense.
458 &config_properties)) { 458 service_path,
459 network_configuration_handler_->SetProperties( 459 config_properties,
460 service_path, 460 base::Bind(&NetworkConnectionHandler::CallShillConnect,
461 config_properties, 461 AsWeakPtr(),
462 base::Bind(&NetworkConnectionHandler::CallShillConnect, 462 service_path),
463 AsWeakPtr(), 463 base::Bind(&NetworkConnectionHandler::HandleConfigurationFailure,
464 service_path), 464 AsWeakPtr(),
465 base::Bind(&NetworkConnectionHandler::HandleConfigurationFailure, 465 service_path));
466 AsWeakPtr(), 466 return;
467 service_path));
468 return;
469 }
470 NET_LOG_ERROR("Shill dictionary is missing some relevant entries",
471 service_path);
472 } 467 }
473 468
474 // Otherwise, we probably still need to configure the network since 469 // Otherwise, we probably still need to configure the network since
475 // 'Connectable' is false. If |check_error_state| is true, signal an 470 // 'Connectable' is false. If |check_error_state| is true, signal an
476 // error, otherwise attempt to connect to possibly gain additional error 471 // error, otherwise attempt to connect to possibly gain additional error
477 // state from Shill (or in case 'Connectable' is improperly unset). 472 // state from Shill (or in case 'Connectable' is improperly unset).
478 if (check_error_state) 473 if (check_error_state)
479 ErrorCallbackForPendingRequest(service_path, kErrorConfigurationRequired); 474 ErrorCallbackForPendingRequest(service_path, kErrorConfigurationRequired);
480 else 475 else
481 CallShillConnect(service_path); 476 CallShillConnect(service_path);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 645
651 void NetworkConnectionHandler::HandleShillDisconnectSuccess( 646 void NetworkConnectionHandler::HandleShillDisconnectSuccess(
652 const std::string& service_path, 647 const std::string& service_path,
653 const base::Closure& success_callback) { 648 const base::Closure& success_callback) {
654 NET_LOG_EVENT("Disconnect Request Sent", service_path); 649 NET_LOG_EVENT("Disconnect Request Sent", service_path);
655 if (!success_callback.is_null()) 650 if (!success_callback.is_null())
656 success_callback.Run(); 651 success_callback.Run();
657 } 652 }
658 653
659 } // namespace chromeos 654 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698