| Index: chrome/browser/resources/settings/device_page/device_page.js
|
| diff --git a/chrome/browser/resources/settings/device_page/device_page.js b/chrome/browser/resources/settings/device_page/device_page.js
|
| index faf52f76012579e539c8ab2dfcedd4f65dac5588..c416e15d41fbbd9bf275c9aea3bcb8dad1022837 100644
|
| --- a/chrome/browser/resources/settings/device_page/device_page.js
|
| +++ b/chrome/browser/resources/settings/device_page/device_page.js
|
| @@ -140,21 +140,8 @@ Polymer({
|
| */
|
| checkPointerSubpage_: function() {
|
| if (!this.hasMouse_ && !this.hasTouchpad_ &&
|
| - this.isCurrentRouteOnPointersPage_()) {
|
| + this.currentRoute == settings.Route.POINTERS) {
|
| this.$.pages.fire('subpage-back');
|
| }
|
| },
|
| -
|
| - /**
|
| - * TODO(michaelpg): create generic fn for this and isCurrentRouteOnSyncPage_.
|
| - * @return {boolean} Whether the current route shows the pointers page.
|
| - * @private
|
| - */
|
| - isCurrentRouteOnPointersPage_: function() {
|
| - return this.currentRoute &&
|
| - this.currentRoute.page == 'basic' &&
|
| - this.currentRoute.section == 'device' &&
|
| - this.currentRoute.subpage.length == 1 &&
|
| - this.currentRoute.subpage[0] == 'pointers';
|
| - },
|
| });
|
|
|