| Index: chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| index faf61cdc338e509f348f629804af924de2084eba..8e0c4b029c5ad5253e57388a4c64b732355b14aa 100644
|
| --- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
|
| @@ -173,4 +173,15 @@ Polymer({
|
| 'documentation/en/flashplayer/help/settings_manager07.html');
|
| },
|
| // </if>
|
| +
|
| + /**
|
| + * Works like a ternary operator. E.g. (value ? trueLabel: falseLabel).
|
| + * @param {boolean} value
|
| + * @param {string} trueLabel True label (for example, 'Allow DRM').
|
| + * @param {string} falseLabel False label (for example, 'Blocked').
|
| + * @private
|
| + */
|
| + getStringTernary_: function(value, trueLabel, falseLabel) {
|
| + return value ? trueLabel : falseLabel;
|
| + },
|
| });
|
|
|