| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-search-page' is the settings page containing search settings. | 7 * 'settings-search-page' is the settings page containing search settings. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-search-page', | 10 is: 'settings-search-page', |
| 11 | 11 |
| 12 behaviors: [ | |
| 13 I18nBehavior, | |
| 14 ], | |
| 15 | |
| 16 properties: { | 12 properties: { |
| 17 /** | 13 /** |
| 18 * The current active route. | 14 * The current active route. |
| 19 */ | 15 */ |
| 20 currentRoute: { | 16 currentRoute: { |
| 21 type: Object, | 17 type: Object, |
| 22 notify: true, | 18 notify: true, |
| 23 }, | 19 }, |
| 24 | 20 |
| 25 /** | 21 /** |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 /** | 68 /** |
| 73 * @return {number} | 69 * @return {number} |
| 74 * @private | 70 * @private |
| 75 */ | 71 */ |
| 76 getSelectedSearchEngineIndex_: function() { | 72 getSelectedSearchEngineIndex_: function() { |
| 77 return this.searchEngines_.findIndex(function(searchEngine) { | 73 return this.searchEngines_.findIndex(function(searchEngine) { |
| 78 return searchEngine.default; | 74 return searchEngine.default; |
| 79 }); | 75 }); |
| 80 }, | 76 }, |
| 81 }); | 77 }); |
| OLD | NEW |