| Index: chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| diff --git a/chrome/browser/resources/settings/settings_page/main_page_behavior.js b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| index 532418a01d4054c21e630a04ccefc4ce8a719018..4d5a06b4b0fe8f779e5d88dba1f9f95c79732936 100644
|
| --- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| +++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| @@ -353,15 +353,6 @@ var MainPageBehavior = [
|
| * @polymerBehavior RoutableBehavior
|
| */
|
| var RoutableBehaviorImpl = {
|
| - properties: {
|
| - /** Contains the current route. */
|
| - currentRoute: {
|
| - type: Object,
|
| - notify: true,
|
| - observer: 'currentRouteChanged_',
|
| - },
|
| - },
|
| -
|
| /** @private */
|
| scrollToSection_: function() {
|
| doWhenReady(
|
| @@ -371,12 +362,12 @@ var RoutableBehaviorImpl = {
|
| function() {
|
| // If the current section changes while we are waiting for the page to
|
| // be ready, scroll to the newest requested section.
|
| - this.getSection_(this.currentRoute.section).scrollIntoView();
|
| + this.getSection_(settings.getCurrentRoute().section).scrollIntoView();
|
| }.bind(this));
|
| },
|
|
|
| /** @private */
|
| - currentRouteChanged_: function(newRoute, oldRoute) {
|
| + currentRouteChanged: function(newRoute, oldRoute) {
|
| var newRouteIsSubpage = newRoute && newRoute.subpage.length;
|
| var oldRouteIsSubpage = oldRoute && oldRoute.subpage.length;
|
|
|
| @@ -426,5 +417,6 @@ var RoutableBehaviorImpl = {
|
| /** @polymerBehavior */
|
| var RoutableBehavior = [
|
| MainPageBehavior,
|
| + settings.RouteObserverBehavior,
|
| RoutableBehaviorImpl
|
| ];
|
|
|