Index: chrome/browser/resources/sync_setup_overlay.js |
diff --git a/chrome/browser/resources/sync_setup_overlay.js b/chrome/browser/resources/sync_setup_overlay.js |
index 51f712a0ef0a3a3f709936d090dfbfe58dbaf52c..0faf72c87bd2a960a1486bbc570a81a1fe55729f 100644 |
--- a/chrome/browser/resources/sync_setup_overlay.js |
+++ b/chrome/browser/resources/sync_setup_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; |
// True if the synced account uses a custom passphrase. |
var usePassphrase_ = false; |
@@ -48,21 +49,21 @@ cr.define('options', function() { |
* @class |
*/ |
function SyncSetupOverlay() { |
- OptionsPage.call(this, 'syncSetup', |
- loadTimeData.getString('syncSetupOverlayTabTitle'), |
- 'sync-setup-overlay'); |
+ Page.call(this, 'syncSetup', |
+ loadTimeData.getString('syncSetupOverlayTabTitle'), |
+ 'sync-setup-overlay'); |
} |
cr.addSingletonGetter(SyncSetupOverlay); |
SyncSetupOverlay.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; |
$('basic-encryption-option').onchange = |
@@ -91,7 +92,7 @@ cr.define('options', function() { |
}, |
showOverlay_: function() { |
- OptionsPage.navigateToPage('syncSetup'); |
+ PageManager.navigateToPage('syncSetup'); |
}, |
closeOverlay_: function() { |
@@ -100,7 +101,7 @@ cr.define('options', function() { |
var overlay = $('sync-setup-overlay'); |
if (!overlay.hidden) |
- OptionsPage.closeOverlay(); |
+ PageManager.closeOverlay(); |
}, |
/** @override */ |
@@ -720,7 +721,7 @@ cr.define('options', function() { |
for (var i = 0; i < overlay.children.length; i++) |
overlay.children[i].hidden = true; |
- // Bypass OptionsPage.navigateToPage because it will call didShowPage |
+ // Bypass PageManager.navigateToPage because it will call didShowPage |
// which will set its own visible page, based on the flow state. |
this.visible = true; |