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(); |
} |
}); |
})(); |