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

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: 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 "chrome/browser/chromeos/cros/native_network_constants.h" 9 #include "chrome/browser/chromeos/cros/native_network_constants.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 const int kConnectDelayMs = 4 * 1000; 633 const int kConnectDelayMs = 4 * 1000;
634 wifi_scanning_ = true; 634 wifi_scanning_ = true;
635 connect_delay_ms_ = kConnectDelayMs; 635 connect_delay_ms_ = kConnectDelayMs;
636 BrowserThread::PostDelayedTask( 636 BrowserThread::PostDelayedTask(
637 BrowserThread::UI, FROM_HERE, 637 BrowserThread::UI, FROM_HERE,
638 base::Bind(&NetworkLibraryImplStub::ScanCompleted, 638 base::Bind(&NetworkLibraryImplStub::ScanCompleted,
639 base::Unretained(this)), 639 base::Unretained(this)),
640 base::TimeDelta::FromMilliseconds(kScanDelayMs)); 640 base::TimeDelta::FromMilliseconds(kScanDelayMs));
641 } 641 }
642 642
643 bool NetworkLibraryImplStub::GetWifiAccessPoints(
644 WifiAccessPointVector* result) {
645 *result = WifiAccessPointVector();
646 return true;
647 }
648
649 void NetworkLibraryImplStub::RefreshIPConfig(Network* network) { 643 void NetworkLibraryImplStub::RefreshIPConfig(Network* network) {
650 } 644 }
651 645
652 void NetworkLibraryImplStub::DisconnectFromNetwork(const Network* network) { 646 void NetworkLibraryImplStub::DisconnectFromNetwork(const Network* network) {
653 // Update the network state here since no network manager in stub impl. 647 // Update the network state here since no network manager in stub impl.
654 Network* modify_network = const_cast<Network*>(network); 648 Network* modify_network = const_cast<Network*>(network);
655 modify_network->set_is_active(false); 649 modify_network->set_is_active(false);
656 modify_network->set_disconnected(); 650 modify_network->set_disconnected();
657 if (network == active_wifi_) 651 if (network == active_wifi_)
658 active_wifi_ = NULL; 652 active_wifi_ = NULL;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 ConnectionTypeToString(network->type())); 734 ConnectionTypeToString(network->type()));
741 dictionary->SetString(flimflam::kNameProperty, network->name()); 735 dictionary->SetString(flimflam::kNameProperty, network->name());
742 dictionary->SetString(flimflam::kGuidProperty, network->unique_id()); 736 dictionary->SetString(flimflam::kGuidProperty, network->unique_id());
743 dictionary->SetString(flimflam::kStateProperty, 737 dictionary->SetString(flimflam::kStateProperty,
744 ConnectionStateToString(network->state())); 738 ConnectionStateToString(network->state()));
745 } 739 }
746 callback.Run(service_path, dictionary.get()); 740 callback.Run(service_path, dictionary.get());
747 } 741 }
748 742
749 } // namespace chromeos 743 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698