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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js

Issue 10694099: Replace the link to opt-out of auto-enrollment with a keyboard shortcut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/login/oobe_screen_oauth_enrollment.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
index 458c0a225e87486e9136b2f6fbdd2e3c0743f40d..d19bdfbfd32eb2550bd98858a173325209600d6d 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_oauth_enrollment.js
@@ -85,9 +85,6 @@ cr.define('oobe', function() {
decorate: function() {
$('oauth-enroll-error-retry').addEventListener('click',
this.doRetry_.bind(this));
- $('oauth-enroll-cancel-auto-link').addEventListener(
- 'click',
- this.confirmCancelAutoEnrollment_.bind(this));
var links = document.querySelectorAll('.oauth-enroll-explain-link');
for (var i = 0; i < links.length; i++) {
links[i].addEventListener('click', this.showStep.bind(this, 'explain'));
@@ -252,18 +249,9 @@ cr.define('oobe', function() {
},
/**
- * Retries the enrollment process after an error occurred in a previous
- * attempt. This goes to the C++ side through |chrome| first to clean up the
- * profile, so that the next attempt is performed with a clean state.
- */
- doRetry_: function() {
- chrome.send('oauthEnrollRetry');
- },
-
- /**
* Handler for cancellations of an enforced auto-enrollment.
*/
- confirmCancelAutoEnrollment_: function() {
+ cancelAutoEnrollment: function() {
if (!this.confirmDialog_) {
this.confirmDialog_ = new cr.ui.dialogs.ConfirmDialog(document.body);
this.confirmDialog_.setOkLabel(
@@ -278,6 +266,15 @@ cr.define('oobe', function() {
},
/**
+ * Retries the enrollment process after an error occurred in a previous
+ * attempt. This goes to the C++ side through |chrome| first to clean up the
+ * profile, so that the next attempt is performed with a clean state.
+ */
+ doRetry_: function() {
+ chrome.send('oauthEnrollRetry');
+ },
+
+ /**
* Handler for confirmation of cancellation of auto-enrollment.
*/
onConfirmCancelAutoEnrollment_: function() {

Powered by Google App Engine
This is Rietveld 408576698