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

Side by Side Diff: chrome/browser/chromeos/mobile/mobile_activator.cc

Issue 12279012: Change the modem reset command on cellular activation completion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/mobile/mobile_activator.h" 5 #include "chrome/browser/chromeos/mobile/mobile_activator.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 void MobileActivator::HandleSetTransactionStatus(bool success) { 272 void MobileActivator::HandleSetTransactionStatus(bool success) {
273 // The payment is received, try to reconnect and check the status all over 273 // The payment is received, try to reconnect and check the status all over
274 // again. 274 // again.
275 if (success && state_ == PLAN_ACTIVATION_SHOWING_PAYMENT) { 275 if (success && state_ == PLAN_ACTIVATION_SHOWING_PAYMENT) {
276 NetworkLibrary* lib = GetNetworkLibrary(); 276 NetworkLibrary* lib = GetNetworkLibrary();
277 lib->SignalCellularPlanPayment(); 277 lib->SignalCellularPlanPayment();
278 UMA_HISTOGRAM_COUNTS("Cellular.PaymentReceived", 1); 278 UMA_HISTOGRAM_COUNTS("Cellular.PaymentReceived", 1);
279 CellularNetwork* network = FindMatchingCellularNetwork(true); 279 CellularNetwork* network = FindMatchingCellularNetwork(true);
280 if (network && network->activate_over_non_cellular_network()) { 280 if (network && network->activate_over_non_cellular_network()) {
281 state_ = PLAN_ACTIVATION_DONE; 281 state_ = PLAN_ACTIVATION_DONE;
282 // We're done with activation, reset the cellular device. 282 // We're done with activation, reset the cellular device.
Greg Spencer (Chromium) 2013/02/15 22:32:14 Might want to update this comment, since you're no
rkc 2013/02/15 22:53:14 The comment isn't actually needed anymore since th
283 lib->ResetModem(); 283 network->CompleteActivation();
284 EvaluateCellularNetwork(network); 284 EvaluateCellularNetwork(network);
285 } else { 285 } else {
286 StartOTASP(); 286 StartOTASP();
287 } 287 }
288 } else { 288 } else {
289 UMA_HISTOGRAM_COUNTS("Cellular.PaymentFailed", 1); 289 UMA_HISTOGRAM_COUNTS("Cellular.PaymentFailed", 1);
290 } 290 }
291 } 291 }
292 292
293 void MobileActivator::OnPortalLoaded(bool success) { 293 void MobileActivator::OnPortalLoaded(bool success) {
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 954
955 std::string MobileActivator::GetErrorMessage(const std::string& code) const { 955 std::string MobileActivator::GetErrorMessage(const std::string& code) const {
956 return cellular_config_->GetErrorMessage(code); 956 return cellular_config_->GetErrorMessage(code);
957 } 957 }
958 958
959 NetworkLibrary* MobileActivator::GetNetworkLibrary() const { 959 NetworkLibrary* MobileActivator::GetNetworkLibrary() const {
960 return CrosLibrary::Get()->GetNetworkLibrary(); 960 return CrosLibrary::Get()->GetNetworkLibrary();
961 } 961 }
962 962
963 } // namespace chromeos 963 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chromeos/dbus/mock_shill_service_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698