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

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: Simplify. 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..01c772ffaa581a6490cf1e777009c221a551815c 100644
--- a/chrome/browser/resources/options/options_page.js
+++ b/chrome/browser/resources/options/options_page.js
@@ -347,6 +347,15 @@ cr.define('options', function() {
};
/**
+ * Closes all overlays and updates the history after each closed overlay.
+ */
+ OptionsPage.closeAllOverlays = function() {
+ while (this.isOverlayVisible_()) {
+ this.closeOverlay();
+ }
+ };
+
+ /**
* 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