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

Side by Side Diff: chrome/browser/chromeos/cros/network_library_impl_stub.cc

Issue 11887008: Deprecate ShillNetworkClient and add GeolocationHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest Created 7 years, 11 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) 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 "chrome/browser/chromeos/cros/network_library_impl_stub.h" 5 #include "chrome/browser/chromeos/cros/network_library_impl_stub.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/stl_util.h" 9 #include "base/stl_util.h"
10 #include "chrome/browser/chromeos/cros/native_network_constants.h" 10 #include "chrome/browser/chromeos/cros/native_network_constants.h"
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 const int kConnectDelayMs = 4 * 1000; 652 const int kConnectDelayMs = 4 * 1000;
653 wifi_scanning_ = true; 653 wifi_scanning_ = true;
654 connect_delay_ms_ = kConnectDelayMs; 654 connect_delay_ms_ = kConnectDelayMs;
655 BrowserThread::PostDelayedTask( 655 BrowserThread::PostDelayedTask(
656 BrowserThread::UI, FROM_HERE, 656 BrowserThread::UI, FROM_HERE,
657 base::Bind(&NetworkLibraryImplStub::ScanCompleted, 657 base::Bind(&NetworkLibraryImplStub::ScanCompleted,
658 base::Unretained(this)), 658 base::Unretained(this)),
659 base::TimeDelta::FromMilliseconds(kScanDelayMs)); 659 base::TimeDelta::FromMilliseconds(kScanDelayMs));
660 } 660 }
661 661
662 bool NetworkLibraryImplStub::GetWifiAccessPoints(
663 WifiAccessPointVector* result) {
664 *result = WifiAccessPointVector();
665 return true;
666 }
667
668 void NetworkLibraryImplStub::RefreshIPConfig(Network* network) { 662 void NetworkLibraryImplStub::RefreshIPConfig(Network* network) {
669 } 663 }
670 664
671 void NetworkLibraryImplStub::DisconnectFromNetwork(const Network* network) { 665 void NetworkLibraryImplStub::DisconnectFromNetwork(const Network* network) {
672 // Update the network state here since no network manager in stub impl. 666 // Update the network state here since no network manager in stub impl.
673 Network* modify_network = const_cast<Network*>(network); 667 Network* modify_network = const_cast<Network*>(network);
674 modify_network->set_is_active(false); 668 modify_network->set_is_active(false);
675 modify_network->set_disconnected(); 669 modify_network->set_disconnected();
676 if (network == active_wifi_) 670 if (network == active_wifi_)
677 active_wifi_ = NULL; 671 active_wifi_ = NULL;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 } 758 }
765 callback.Run(service_path, dictionary.get()); 759 callback.Run(service_path, dictionary.get());
766 } 760 }
767 761
768 const std::map<std::string, base::DictionaryValue*>& 762 const std::map<std::string, base::DictionaryValue*>&
769 NetworkLibraryImplStub::GetConfigurations() { 763 NetworkLibraryImplStub::GetConfigurations() {
770 return service_configurations_; 764 return service_configurations_;
771 } 765 }
772 766
773 } // namespace chromeos 767 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698