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

Unified Diff: chrome/browser/resources/md_user_manager/create_profile.js

Issue 1939933002: MD User Manager: Supervised user checkbox is always displaying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-stylesheets
Patch Set: Created 4 years, 8 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/md_user_manager/create_profile.js
diff --git a/chrome/browser/resources/md_user_manager/create_profile.js b/chrome/browser/resources/md_user_manager/create_profile.js
index 63cfa78c672462a98f915630b6d70932dd14f853..7eceabfc71e3a0da60593fb0fcaa2cb9977ea272 100644
--- a/chrome/browser/resources/md_user_manager/create_profile.js
+++ b/chrome/browser/resources/md_user_manager/create_profile.js
@@ -132,7 +132,7 @@ Polymer({
/**
* Handles tap events from dynamically created links in warning/error messages
- * pushed by the browser.
+ * pushed by the browser as well as the noSignedInUserMessage i18n string.
tommycli 2016/05/02 19:10:13 Would this comment be more readable as? Handles t
Moe 2016/05/02 20:34:56 Done.
* @param {!Event} event
* @private
*/
@@ -142,6 +142,9 @@ Polymer({
if (element.id == 'supervised-user-import-existing') {
this.onImportUserTap_(event);
event.preventDefault();
+ } else if (element.id == 'sign-in-to-chrome') {
+ this.browserProxy_.openUrlInLastActiveProfileBrowser(element.href);
+ event.preventDefault();
tommycli 2016/05/02 19:10:13 You could move this line outside the if blocks
Moe 2016/05/02 20:34:57 This handler handles all tap events on the page. W
tommycli 2016/05/02 21:57:49 You are correct. My mistake :)
}
// TODO(mahmadi): handle tap event on '#reauth' to re-auth the custodian.
},

Powered by Google App Engine
This is Rietveld 408576698