Index: chrome/browser/resources/extensions/pack_extension_overlay.js |
diff --git a/chrome/browser/resources/extensions/pack_extension_overlay.js b/chrome/browser/resources/extensions/pack_extension_overlay.js |
index 03e6180a03d4400aa99369f9788a749edefdf954..05d23d1f2f9062f45b793b868a267d4e46d9f867 100644 |
--- a/chrome/browser/resources/extensions/pack_extension_overlay.js |
+++ b/chrome/browser/resources/extensions/pack_extension_overlay.js |
@@ -23,8 +23,9 @@ cr.define('extensions', function() { |
cr.ui.overlay.globalInitialization(); |
overlay.addEventListener('cancelOverlay', this.handleDismiss_.bind(this)); |
- $('pack-extension-dismiss').addEventListener('click', |
- this.handleDismiss_.bind(this)); |
+ $('pack-extension-dismiss').addEventListener('click', function() { |
+ cr.dispatchSimpleEvent(overlay, 'cancelOverlay'); |
+ }); |
$('pack-extension-commit').addEventListener('click', |
this.handleCommit_.bind(this)); |
$('browse-extension-dir').addEventListener('click', |