Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: chrome/browser/resources/settings/search_page/search_page.js

Issue 2210933004: Settings Router Refactor: Kill settings-router. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 properties: { 12 properties: {
13 /** 13 /**
14 * The current active route.
15 */
16 currentRoute: {
17 type: Object,
18 notify: true,
19 },
20
21 /**
22 * List of default search engines available. 14 * List of default search engines available.
23 * @private {!Array<!SearchEngine>} 15 * @private {!Array<!SearchEngine>}
24 */ 16 */
25 searchEngines_: { 17 searchEngines_: {
26 type: Array, 18 type: Array,
27 value: function() { return []; } 19 value: function() { return []; }
28 }, 20 },
29 21
30 /** @private {!settings.SearchEnginesBrowserProxy} */ 22 /** @private {!settings.SearchEnginesBrowserProxy} */
31 browserProxy_: Object, 23 browserProxy_: Object,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 /** 60 /**
69 * @return {number} 61 * @return {number}
70 * @private 62 * @private
71 */ 63 */
72 getSelectedSearchEngineIndex_: function() { 64 getSelectedSearchEngineIndex_: function() {
73 return this.searchEngines_.findIndex(function(searchEngine) { 65 return this.searchEngines_.findIndex(function(searchEngine) {
74 return searchEngine.default; 66 return searchEngine.default;
75 }); 67 });
76 }, 68 },
77 }); 69 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698