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

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

Issue 2677413002: MD Settings: Make Protected Content toggle change label text on toggle (Closed)
Patch Set: update parens Created 3 years, 10 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
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-privacy-page' is the settings page containing privacy and 7 * 'settings-privacy-page' is the settings page containing privacy and
8 * security settings. 8 * security settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 loadTimeData.getString('contentSettings'); 166 loadTimeData.getString('contentSettings');
167 }, 167 },
168 168
169 // <if expr="chromeos"> 169 // <if expr="chromeos">
170 /** @private */ 170 /** @private */
171 onAdobeFlashStorageClicked_: function() { 171 onAdobeFlashStorageClicked_: function() {
172 window.open('https://www.macromedia.com/support/' + 172 window.open('https://www.macromedia.com/support/' +
173 'documentation/en/flashplayer/help/settings_manager07.html'); 173 'documentation/en/flashplayer/help/settings_manager07.html');
174 }, 174 },
175 // </if> 175 // </if>
176
177 /**
178 * Works like a ternary operator. E.g. (value ? trueLabel: falseLabel).
179 * @param {boolean} value
180 * @param {string} trueLabel True label (for example, 'Allow DRM').
181 * @param {string} falseLabel False label (for example, 'Blocked').
182 * @private
183 */
184 getStringTernary_: function(value, trueLabel, falseLabel) {
185 return value ? trueLabel : falseLabel;
186 },
176 }); 187 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698