Index: chrome/browser/resources/options/certificate_backup_overlay.js |
diff --git a/chrome/browser/resources/options/certificate_backup_overlay.js b/chrome/browser/resources/options/certificate_backup_overlay.js |
index c904a47f9b97b046ded16df6e18e30562daea958..877853dc6f2ce739c1bff8448428d132a2fed55c 100644 |
--- a/chrome/browser/resources/options/certificate_backup_overlay.js |
+++ b/chrome/browser/resources/options/certificate_backup_overlay.js |
@@ -3,7 +3,8 @@ |
// found in the LICENSE file. |
cr.define('options', function() { |
- /** @const */ var OptionsPage = options.OptionsPage; |
+ /** @const */ var Page = cr.ui.pageManager.Page; |
+ /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
/** |
* CertificateBackupOverlay class |
@@ -11,21 +12,19 @@ cr.define('options', function() { |
* @class |
*/ |
function CertificateBackupOverlay() { |
- OptionsPage.call(this, 'certificateBackupOverlay', |
- '', |
- 'certificateBackupOverlay'); |
+ Page.call(this, 'certificateBackupOverlay', '', 'certificateBackupOverlay'); |
} |
cr.addSingletonGetter(CertificateBackupOverlay); |
CertificateBackupOverlay.prototype = { |
- __proto__: OptionsPage.prototype, |
+ __proto__: Page.prototype, |
/** |
* Initializes the page. |
*/ |
initializePage: function() { |
- OptionsPage.prototype.initializePage.call(this); |
+ Page.prototype.initializePage.call(this); |
var self = this; |
$('certificateBackupCancelButton').onclick = function(event) { |
@@ -49,7 +48,7 @@ cr.define('options', function() { |
*/ |
dismissOverlay_: function() { |
this.clearInputFields_(); |
- OptionsPage.closeOverlay(); |
+ PageManager.closeOverlay(); |
}, |
/** |
@@ -103,7 +102,7 @@ cr.define('options', function() { |
CertificateBackupOverlay.show = function() { |
CertificateBackupOverlay.getInstance().clearInputFields_(); |
- OptionsPage.navigateToPage('certificateBackupOverlay'); |
+ PageManager.showPageByName('certificateBackupOverlay'); |
}; |
CertificateBackupOverlay.dismiss = function() { |