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

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

Issue 410293004: Split OptionsPage into Page and PageManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ugh just no Created 6 years, 5 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/cookies_view.js ('k') | chrome/browser/resources/options/font_settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/factory_reset_overlay.js
diff --git a/chrome/browser/resources/options/factory_reset_overlay.js b/chrome/browser/resources/options/factory_reset_overlay.js
index 81b1450b4dd33067408db0b616acafc32856701a..0a446488016cf73107aae4d3c184fe232b361ba2 100644
--- a/chrome/browser/resources/options/factory_reset_overlay.js
+++ b/chrome/browser/resources/options/factory_reset_overlay.js
@@ -3,7 +3,8 @@
// found in the LICENSE file.
cr.define('options', function() {
- var OptionsPage = options.OptionsPage;
+ var Page = cr.ui.pageManager.Page;
+ var PageManager = cr.ui.pageManager.PageManager;
/**
* FactoryResetOverlay class
@@ -11,21 +12,20 @@ cr.define('options', function() {
* @class
*/
function FactoryResetOverlay() {
- OptionsPage.call(this, 'factoryResetData',
- loadTimeData.getString('factoryResetTitle'),
- 'factory-reset-overlay');
+ Page.call(this, 'factoryResetData',
+ loadTimeData.getString('factoryResetTitle'),
+ 'factory-reset-overlay');
}
cr.addSingletonGetter(FactoryResetOverlay);
FactoryResetOverlay.prototype = {
- // Inherit FactoryResetOverlay from OptionsPage.
- __proto__: OptionsPage.prototype,
+ // Inherit FactoryResetOverlay from Page.
+ __proto__: Page.prototype,
/** @override */
initializePage: function() {
- // Call base class implementation to starts preference initialization.
- OptionsPage.prototype.initializePage.call(this);
+ Page.prototype.initializePage.call(this);
$('factory-reset-data-dismiss').onclick = function(event) {
FactoryResetOverlay.dismiss();
@@ -37,7 +37,7 @@ cr.define('options', function() {
};
FactoryResetOverlay.dismiss = function() {
- OptionsPage.closeOverlay();
+ PageManager.closeOverlay();
};
// Export
« no previous file with comments | « chrome/browser/resources/options/cookies_view.js ('k') | chrome/browser/resources/options/font_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698