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

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

Issue 2688793002: MD Settings: Update Protected Content for redesign (Closed)
Patch Set: Originally reviewed patch 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
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 4bf462434a60e6f650baab76ea9c82b6e52718f2..c33cf3a09e9e15b0f43859d7983bee1661e67965 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -418,8 +418,19 @@
</template>
<template is="dom-if" route-path="/content/protectedContent" no-search>
<settings-subpage page-title="$i18n{siteSettingsProtectedContent}">
+ <div class="settings-box first">
+ <!-- TODO(dschuyler): change i18n to i18nStr. -->
+ <settings-toggle-button class="start"
+ pref="{{prefs.webkit.webprefs.encrypted_media_enabled}}"
+ label="[[getStringTernary_(
+ prefs.webkit.webprefs.encrypted_media_enabled.value,
+ '$i18n{siteSettingsProtectedContentEnable}',
+ '$i18n{siteSettingsBlocked}')]]">
stevenjb 2017/02/10 00:32:31 Just FMI, any particular reason to do this in the
tommycli 2017/02/10 00:51:37 Ask dschuyler for details, but the plan is to even
stevenjb 2017/02/10 01:12:47 Hmm, I am unconvinced that is achievable, but if i
tommycli 2017/02/10 16:58:42 Hey - I should be more specific... if we can remov
stevenjb 2017/02/10 17:21:07 OK, that makes sense. I was actually suggesting:
+ </settings-toggle-button>
+ </div>
+<if expr="chromeos or is_win">
<div class="settings-box first two-line">
- $i18n{siteSettingsProtectedContentExplanation}
+ $i18n{siteSettingsProtectedContentIdentifiersExplanation}
</div>
<div class="settings-box first">
<!-- TODO(dschuyler): change i18n to i18nStr. -->
@@ -427,14 +438,18 @@
pref="{{prefs.settings.privacy.drm_enabled}}"
label="[[getStringTernary_(
prefs.settings.privacy.drm_enabled.value,
- '$i18n{siteSettingsProtectedContentEnable}',
+ '$i18n{siteSettingsProtectedContentEnableIdentifiers}',
'$i18n{siteSettingsBlocked}')]]">
</settings-toggle-button>
</div>
+</if>
<if expr="chromeos">
- <category-setting-exceptions
- category="{{ContentSettingsTypes.PROTECTED_CONTENT}}">
- </category-setting-exceptions>
+ <template is="dom-if"
+ if="[[prefs.settings.privacy.drm_enabled.value]]">
+ <category-setting-exceptions
+ category="{{ContentSettingsTypes.PROTECTED_CONTENT}}">
+ </category-setting-exceptions>
+ </template>
</if>
</settings-subpage>
</template>

Powered by Google App Engine
This is Rietveld 408576698