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

Unified Diff: chrome/browser/resources/options/options_page.js

Issue 192573003: After a supervised user has been imported, close overlays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Close all overlays. Created 6 years, 9 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
« no previous file with comments | « chrome/browser/resources/options/managed_user_import.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « chrome/browser/resources/options/managed_user_import.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698