Index: chrome/browser/resources/options/reset_profile_settings_overlay.js |
diff --git a/chrome/browser/resources/options/reset_profile_settings_overlay.js b/chrome/browser/resources/options/reset_profile_settings_overlay.js |
index 74ccb492dfbb00f526235f76a3d3eee14b7f8080..666d7d0b7310fa6cdbfb577f17d9768e4dc695a9 100644 |
--- a/chrome/browser/resources/options/reset_profile_settings_overlay.js |
+++ b/chrome/browser/resources/options/reset_profile_settings_overlay.js |
@@ -3,7 +3,7 @@ |
// found in the LICENSE file. |
cr.define('options', function() { |
- var OptionsPage = options.OptionsPage; |
+ var Page = cr.ui.pageManager.Page; |
var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner; |
var ResetProfileSettingsBanner = options.ResetProfileSettingsBanner; |
@@ -14,21 +14,20 @@ cr.define('options', function() { |
* @class |
*/ |
function ResetProfileSettingsOverlay() { |
- OptionsPage.call( |
- this, 'resetProfileSettings', |
- loadTimeData.getString('resetProfileSettingsOverlayTabTitle'), |
- 'reset-profile-settings-overlay'); |
+ Page.call(this, 'resetProfileSettings', |
+ loadTimeData.getString('resetProfileSettingsOverlayTabTitle'), |
+ 'reset-profile-settings-overlay'); |
} |
cr.addSingletonGetter(ResetProfileSettingsOverlay); |
ResetProfileSettingsOverlay.prototype = { |
- // Inherit ResetProfileSettingsOverlay from OptionsPage. |
- __proto__: OptionsPage.prototype, |
+ // Inherit ResetProfileSettingsOverlay from Page. |
+ __proto__: Page.prototype, |
/** @override */ |
initializePage: function() { |
- OptionsPage.prototype.initializePage.call(this); |
+ Page.prototype.initializePage.call(this); |
$('reset-profile-settings-dismiss').onclick = function(event) { |
ResetProfileSettingsOverlay.dismiss(); |
@@ -80,7 +79,7 @@ cr.define('options', function() { |
* Dismisses the overlay. |
*/ |
ResetProfileSettingsOverlay.dismiss = function() { |
- OptionsPage.closeOverlay(); |
+ PageManager.closeOverlay(); |
ResetProfileSettingsOverlay.setResettingState(false); |
}; |