Chromium Code Reviews| Index: chrome/browser/resources/options/options_page.js |
| diff --git a/chrome/browser/resources/options/options_page.js b/chrome/browser/resources/options/options_page.js |
| index 303d16781074416a7f47c98f7ffc94e20870324d..7eccf1234ef6c0aad568caab48e054f5724cd08f 100644 |
| --- a/chrome/browser/resources/options/options_page.js |
| +++ b/chrome/browser/resources/options/options_page.js |
| @@ -347,6 +347,17 @@ cr.define('options', function() { |
| }; |
| /** |
| + * Closes all overlays and updates the history after each closed overlay. |
| + */ |
| + OptionsPage.closeAllOverlays = function() { |
| + var overlay = this.getVisibleOverlay_(); |
| + while (overlay) { |
|
Bernhard Bauer
2014/03/10 10:56:17
This could be simplified to:
while (this.isOver
Adrian Kuegel
2014/03/10 11:27:02
Done.
|
| + this.closeOverlay(); |
| + overlay = this.getVisibleOverlay_(); |
| + } |
| + }; |
| + |
| + /** |
| * Cancels (closes) the overlay, due to the user pressing <Esc>. |
| */ |
| OptionsPage.cancelOverlay = function() { |