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

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

Issue 2825493003: MD Settings: change outlinks to actually use <a> (Closed)
Patch Set: merge Created 3 years, 7 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',
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 getShowHotwordError_: function() { 159 getShowHotwordError_: function() {
160 return this.hotwordInfo_.enabled && !!this.hotwordInfo_.errorMessage; 160 return this.hotwordInfo_.enabled && !!this.hotwordInfo_.errorMessage;
161 }, 161 },
162 162
163 /** @private */ 163 /** @private */
164 onRetrainTap_: function() { 164 onRetrainTap_: function() {
165 // Re-enable hotword search enable; this will trigger the retrain UI. 165 // Re-enable hotword search enable; this will trigger the retrain UI.
166 this.browserProxy_.setHotwordSearchEnabled(this.hotwordInfo_.enabled); 166 this.browserProxy_.setHotwordSearchEnabled(this.hotwordInfo_.enabled);
167 }, 167 },
168 168
169 /** @private */
170 onManageAudioHistoryTap_: function() {
171 window.open(loadTimeData.getString('manageAudioHistoryUrl'));
172 },
173
174 /** 169 /**
175 * @param {Event} event 170 * @param {Event} event
176 * @private 171 * @private
177 */ 172 */
178 doNothing_: function(event) { 173 doNothing_: function(event) {
179 event.stopPropagation(); 174 event.stopPropagation();
180 } 175 }
181 }); 176 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698