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

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

Issue 1916913010: MD User Manager: latest design change, css refactoring, accessiblity, and bug fixes (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..783d43891a4591042e593aa678ba8ff1fc03161f 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.
* @param {!Event} event
* @private
*/
@@ -140,7 +140,10 @@ Polymer({
var element = Polymer.dom(event).rootTarget;
if (element.id == 'supervised-user-import-existing') {
- this.onImportUserTap_(event);
+ this.onImportUserLinkTap_(event);
+ event.preventDefault();
+ } else if (element.id == 'sign-in-to-chrome') {
+ this.browserProxy_.openUrlInLastActiveProfileBrowser(element.href);
event.preventDefault();
}
// TODO(mahmadi): handle tap event on '#reauth' to re-auth the custodian.
@@ -197,7 +200,7 @@ Polymer({
* @param {!Event} event
* @private
*/
- onImportUserTap_: function(event) {
+ onImportUserLinkTap_: function(event) {
if (this.signedInUserIndex_ == NO_USER_SELECTED) {
// A custodian must be selected.
this.handleMessage_(this.i18n('custodianAccountNotSelectedError'));

Powered by Google App Engine
This is Rietveld 408576698