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

Unified Diff: chrome/browser/resources/settings/privacy_page/privacy_page.html

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/settings/privacy_page/privacy_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/privacy_page/privacy_page.html
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.html b/chrome/browser/resources/settings/privacy_page/privacy_page.html
index 6f523903ce0aae8aa3e3b5cf5b8fabf85b38bb0c..800eeadb90fa7ef0a654934a920b4f01c0dd7f74 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -445,9 +445,13 @@
$i18n{siteSettingsProtectedContentExplanation}
</div>
<div class="settings-box first">
+ <!-- TODO(dschuyler): change i18n to i18nStr. -->
<settings-toggle-button class="start"
pref="{{prefs.settings.privacy.drm_enabled}}"
- label="$i18n{siteSettingsProtectedContentEnable}">
+ label="[[getStringTernary_(
+ prefs.settings.privacy.drm_enabled.value,
+ '$i18n{siteSettingsProtectedContentEnable}',
+ '$i18n{siteSettingsBlocked}')]]">
</settings-toggle-button>
</div>
<if expr="chromeos">
« no previous file with comments | « no previous file | chrome/browser/resources/settings/privacy_page/privacy_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698