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

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

Issue 1826683002: MD Settings: Lazy-load sub-pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WebAnimationsExterns
Patch Set: closure Created 4 years, 8 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 behaviors: [
13 I18nBehavior,
14 ],
15
12 properties: { 16 properties: {
13 /** 17 /**
14 * The current active route. 18 * The current active route.
15 */ 19 */
16 currentRoute: { 20 currentRoute: {
17 type: Object, 21 type: Object,
18 notify: true, 22 notify: true,
19 }, 23 },
20 24
21 /** 25 /**
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 /** 72 /**
69 * @return {number} 73 * @return {number}
70 * @private 74 * @private
71 */ 75 */
72 getSelectedSearchEngineIndex_: function() { 76 getSelectedSearchEngineIndex_: function() {
73 return this.searchEngines_.findIndex(function(searchEngine) { 77 return this.searchEngines_.findIndex(function(searchEngine) {
74 return searchEngine.default; 78 return searchEngine.default;
75 }); 79 });
76 }, 80 },
77 }); 81 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698