| OLD | NEW |
| 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 const std::string& carrier, | 680 const std::string& carrier, |
| 681 const NetworkOperationCallback& completed) { | 681 const NetworkOperationCallback& completed) { |
| 682 // Call the completed callback with a 10s delay. | 682 // Call the completed callback with a 10s delay. |
| 683 BrowserThread::PostDelayedTask( | 683 BrowserThread::PostDelayedTask( |
| 684 BrowserThread::UI, | 684 BrowserThread::UI, |
| 685 FROM_HERE, | 685 FROM_HERE, |
| 686 base::Bind(completed, "", NETWORK_METHOD_ERROR_NONE,""), | 686 base::Bind(completed, "", NETWORK_METHOD_ERROR_NONE,""), |
| 687 base::TimeDelta::FromMilliseconds(10000)); | 687 base::TimeDelta::FromMilliseconds(10000)); |
| 688 } | 688 } |
| 689 | 689 |
| 690 void NetworkLibraryImplStub::ResetModem() { |
| 691 } |
| 692 |
| 690 bool NetworkLibraryImplStub::IsCellularAlwaysInRoaming() { | 693 bool NetworkLibraryImplStub::IsCellularAlwaysInRoaming() { |
| 691 return false; | 694 return false; |
| 692 } | 695 } |
| 693 | 696 |
| 694 void NetworkLibraryImplStub::RequestNetworkScan() { | 697 void NetworkLibraryImplStub::RequestNetworkScan() { |
| 695 // This is triggered by user interaction, so set a network connect delay. | 698 // This is triggered by user interaction, so set a network connect delay. |
| 696 const int kScanDelayMs = 2 * 1000; | 699 const int kScanDelayMs = 2 * 1000; |
| 697 wifi_scanning_ = true; | 700 wifi_scanning_ = true; |
| 698 BrowserThread::PostDelayedTask( | 701 BrowserThread::PostDelayedTask( |
| 699 BrowserThread::UI, FROM_HERE, | 702 BrowserThread::UI, FROM_HERE, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 } | 804 } |
| 802 callback.Run(service_path, dictionary.get()); | 805 callback.Run(service_path, dictionary.get()); |
| 803 } | 806 } |
| 804 | 807 |
| 805 const std::map<std::string, base::DictionaryValue*>& | 808 const std::map<std::string, base::DictionaryValue*>& |
| 806 NetworkLibraryImplStub::GetConfigurations() { | 809 NetworkLibraryImplStub::GetConfigurations() { |
| 807 return service_configurations_; | 810 return service_configurations_; |
| 808 } | 811 } |
| 809 | 812 |
| 810 } // namespace chromeos | 813 } // namespace chromeos |
| OLD | NEW |