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

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

Issue 12041029: Add ResetModem method and call it once non_cellular activation is done. (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 "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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library_impl_stub.h ('k') | chrome/browser/chromeos/mobile/mobile_activator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698