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

Unified Diff: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc

Issue 10413053: Changed VZ activation logic to always attempt OTA even for brand new devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/chromeos/mobile_setup.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
index bf875d72fa2cab7ac4fd613b74b2fed603b36093..4213eab9cc522eae16e35e0d0a7550d41721e114 100644
--- a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
@@ -478,8 +478,6 @@ void MobileSetupUIHTMLSource::StartDataRequest(const std::string& path,
l10n_util::GetStringUTF16(IDS_CANCEL));
strings.SetString("ok_button",
l10n_util::GetStringUTF16(IDS_OK));
- strings.SetString("cancel_question",
- l10n_util::GetStringUTF16(IDS_MOBILE_CANCEL_ACTIVATION));
SetFontAndTextDirection(&strings);
static const base::StringPiece html(
@@ -879,7 +877,21 @@ void MobileSetupHandler::EvaluateCellularNetwork(
// Just ignore any changes until the OTASP retry timer kicks in.
evaluating_ = false;
return;
- case PLAN_ACTIVATION_INITIATING_ACTIVATION:
+ case PLAN_ACTIVATION_INITIATING_ACTIVATION: {
+ switch (network->activation_state()) {
+ case chromeos::ACTIVATION_STATE_ACTIVATED:
+ case chromeos::ACTIVATION_STATE_PARTIALLY_ACTIVATED:
+ new_state = PLAN_ACTIVATION_START;
+ break;
+ case chromeos::ACTIVATION_STATE_NOT_ACTIVATED:
+ case chromeos::ACTIVATION_STATE_ACTIVATING:
+ // Wait in this state until activation state changes.
+ break;
+ default:
+ break;
+ }
+ break;
+ }
case PLAN_ACTIVATION_OTASP:
case PLAN_ACTIVATION_TRYING_OTASP: {
switch (network->activation_state()) {
« no previous file with comments | « chrome/browser/resources/chromeos/mobile_setup.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698