| 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 b1b31d65f94fdb1f079fe57c82c4d301d3aa31a0..214547e447aaab9b20e41aa91928669c11e3f30f 100644
|
| --- a/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| +++ b/chrome/browser/resources/settings/settings_page/main_page_behavior.js
|
| @@ -60,7 +60,7 @@ var MainPageBehaviorImpl = {
|
| */
|
| tryTransitionToSection_: function() {
|
| var currentRoute = settings.getCurrentRoute();
|
| - var currentSection = this.getSection_(currentRoute.section);
|
| + var currentSection = this.getSection(currentRoute.section);
|
|
|
| // If an animation is already playing, try finishing or canceling it.
|
| if (this.currentAnimation_) {
|
| @@ -225,7 +225,7 @@ var MainPageBehaviorImpl = {
|
| function() {
|
| // If the current section changes while we are waiting for the page to
|
| // be ready, scroll to the newest requested section.
|
| - var section = this.getSection_(settings.getCurrentRoute().section);
|
| + var section = this.getSection(settings.getCurrentRoute().section);
|
| if (section)
|
| section.scrollIntoView();
|
| }.bind(this));
|
| @@ -235,9 +235,8 @@ var MainPageBehaviorImpl = {
|
| * Helper function to get a section from the local DOM.
|
| * @param {string} section Section name of the element to get.
|
| * @return {?SettingsSectionElement}
|
| - * @private
|
| */
|
| - getSection_: function(section) {
|
| + getSection: function(section) {
|
| if (!section)
|
| return null;
|
| return /** @type {?SettingsSectionElement} */(
|
|
|