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

Unified Diff: chrome/browser/resources/chromeos/mobile_setup.js

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
Index: chrome/browser/resources/chromeos/mobile_setup.js
diff --git a/chrome/browser/resources/chromeos/mobile_setup.js b/chrome/browser/resources/chromeos/mobile_setup.js
index c871fe920aa8be36daaabf75f33c126d6b51beab..6667b81ac6292606a6afea2d972b60924daa7fb7 100644
--- a/chrome/browser/resources/chromeos/mobile_setup.js
+++ b/chrome/browser/resources/chromeos/mobile_setup.js
@@ -77,18 +77,6 @@ cr.define('mobile', function() {
$('finalStatus').classList.add('hidden');
});
- $('cancelButton').addEventListener('click', function(e) {
- if (self.state_ == MobileSetup.PLAN_ACTIVATION_DONE ||
- self.state_ == MobileSetup.PLAN_ACTIVATION_ERROR) {
- window.close();
- return;
- }
- self.confirm_.show(
- MobileSetup.localStrings_.getString('cancel_question'), function() {
- window.close();
- });
- });
-
this.changeState_({state: MobileSetup.PLAN_ACTIVATION_PAGE_LOADING});
// Kick off activation process.
chrome.send('startActivation');
@@ -225,8 +213,6 @@ cr.define('mobile', function() {
$('closeButton').classList.remove('hidden');
} else {
$('closeButton').classList.add('hidden');
- $('cancelButton').textContent =
- MobileSetup.localStrings_.getString('close_button');
}
break;
case MobileSetup.PLAN_ACTIVATION_ERROR:
@@ -244,8 +230,6 @@ cr.define('mobile', function() {
$('closeButton').classList.remove('hidden');
} else {
$('closeButton').classList.add('hidden');
- $('cancelButton').textContent =
- MobileSetup.localStrings_.getString('close_button');
}
$('finalStatus').classList.remove('hidden');
break;
« no previous file with comments | « chrome/browser/resources/chromeos/mobile_setup.html ('k') | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698