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

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

Issue 2024233003: MD User Manager: Refactors existing dialogs in User Manager into <user-manager-dialog> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-locked-test
Patch Set: Removed user_manager_dialog gyp target Created 4 years, 6 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/error_dialog.js
diff --git a/chrome/browser/resources/md_user_manager/error_dialog.js b/chrome/browser/resources/md_user_manager/error_dialog.js
index 47b2eb204243804086ac4a3af71ba119b94f5215..7794fa52e867703a0318434a5221568017619c9f 100644
--- a/chrome/browser/resources/md_user_manager/error_dialog.js
+++ b/chrome/browser/resources/md_user_manager/error_dialog.js
@@ -3,7 +3,7 @@
// found in the LICENSE file.
/**
- * @fileoverview 'error-dialog' is a popup dialog that displays error messages
+ * @fileoverview 'error-dialog' is a dialog that displays error messages
* in the user manager.
*/
(function() {
@@ -12,15 +12,6 @@ Polymer({
properties: {
/**
- * True if the element is currently hidden.
- * @private {boolean}
- */
- popupHidden_: {
- type: Boolean,
- value: true
- },
-
- /**
* The message shown in the dialog.
* @private {string}
*/
@@ -31,24 +22,12 @@ Polymer({
},
/**
- * Displays the popup populated with the given message.
+ * Displays the dialog populated with the given message.
* @param {string} message Error message to show.
*/
show: function(message) {
this.message_ = message;
- this.popupHidden_ = false;
-
- this.async(function() {
- this.$$('paper-icon-button').focus();
- }.bind(this));
- },
-
- /**
- * Hides the popup.
- * @private
- */
- onCloseTap_: function() {
- this.popupHidden_ = true;
+ this.$.dialog.open();
}
});
})();

Powered by Google App Engine
This is Rietveld 408576698