| 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', |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 onManageAudioHistoryTap_: function() { | 170 onManageAudioHistoryTap_: function() { |
| 171 window.open(loadTimeData.getString('manageAudioHistoryUrl')); | 171 window.open(loadTimeData.getString('manageAudioHistoryUrl')); |
| 172 }, | 172 }, |
| 173 | 173 |
| 174 /** | 174 /** |
| 175 * @param {Event} event | 175 * @param {Event} event |
| 176 * @private | 176 * @private |
| 177 */ | 177 */ |
| 178 doNothing_: function(event) { | 178 doNothing_: function(event) { |
| 179 event.stopPropagation(); | 179 event.stopPropagation(); |
| 180 } | 180 }, |
| 181 |
| 182 /** |
| 183 * @param {!chrome.settingsPrivate.PrefObject} pref |
| 184 * @return {boolean} |
| 185 * @private |
| 186 */ |
| 187 isDefaultSearchControlledByPolicy_: function(pref) { |
| 188 return pref.controlledBy == chrome.settingsPrivate.ControlledBy.USER_POLICY; |
| 189 }, |
| 190 |
| 191 /** |
| 192 * @param {!chrome.settingsPrivate.PrefObject} pref |
| 193 * @return {boolean} |
| 194 * @private |
| 195 */ |
| 196 isDefaultSearchEngineEnforced_: function(pref) { |
| 197 return pref.enforcement == chrome.settingsPrivate.Enforcement.ENFORCED; |
| 198 }, |
| 181 }); | 199 }); |
| OLD | NEW |