| Index: chrome/browser/resources/settings/settings_main/settings_main.js
|
| diff --git a/chrome/browser/resources/settings/settings_main/settings_main.js b/chrome/browser/resources/settings/settings_main/settings_main.js
|
| index 75daea44da83eb7a5e91e6f11fb9a2c469abc85b..92b73a3cdc6d137a32b57620d993b78998994740 100644
|
| --- a/chrome/browser/resources/settings/settings_main/settings_main.js
|
| +++ b/chrome/browser/resources/settings/settings_main/settings_main.js
|
| @@ -26,7 +26,7 @@ Polymer({
|
|
|
| /**
|
| * The current active route.
|
| - * @type {!SettingsRoute}
|
| + * @type {!settings.Route}
|
| */
|
| currentRoute: {
|
| type: Object,
|
| @@ -70,11 +70,8 @@ Polymer({
|
| document.addEventListener('toggle-advanced-page', function(e) {
|
| this.showAdvancedPage_ = e.detail;
|
| this.isAdvancedMenuOpen_ = e.detail;
|
| - this.currentRoute = {
|
| - page: this.isAdvancedMenuOpen_ ? 'advanced' : 'basic',
|
| - section: '',
|
| - subpage: [],
|
| - };
|
| + settings.navigateTo(this.isAdvancedMenuOpen_ ?
|
| + settings.Route.ADVANCED : settings.Route.BASIC);
|
| if (this.showAdvancedPage_) {
|
| doWhenReady(
|
| function() {
|
| @@ -107,7 +104,7 @@ Polymer({
|
| },
|
|
|
| /**
|
| - * @param {!SettingsRoute} newRoute
|
| + * @param {!settings.Route} newRoute
|
| * @private
|
| */
|
| currentRouteChanged_: function(newRoute) {
|
| @@ -139,7 +136,7 @@ Polymer({
|
| if (this.currentRoute.page != 'basic' ||
|
| this.currentRoute.section != '' ||
|
| this.currentRoute.subpage.length != 0) {
|
| - this.currentRoute = {page: 'basic', section: '', subpage: [], url: ''};
|
| + settings.navigateTo(settings.Route.BASIC);
|
| }
|
| },
|
|
|
|
|