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

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

Issue 2688793002: MD Settings: Update Protected Content for redesign (Closed)
Patch Set: fix closure issues 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..f1d1a282442aaa696f5502301b5408e895102fc2 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
@@ -1,5 +1,6 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_vars_css.html">
+<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
@@ -418,23 +419,32 @@
</template>
<template is="dom-if" route-path="/content/protectedContent" no-search>
<settings-subpage page-title="$i18n{siteSettingsProtectedContent}">
+ <div class="settings-box first">
+ <settings-toggle-button class="start"
+ pref="{{prefs.webkit.webprefs.encrypted_media_enabled}}"
+ label="[[getProtectedContentLabel_(
+ prefs.webkit.webprefs.encrypted_media_enabled.value)]]">
+ </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. -->
<settings-toggle-button class="start"
pref="{{prefs.settings.privacy.drm_enabled}}"
- label="[[getStringTernary_(
- prefs.settings.privacy.drm_enabled.value,
- '$i18n{siteSettingsProtectedContentEnable}',
- '$i18n{siteSettingsBlocked}')]]">
+ label="[[getProtectedContentIdentifiersLabel_(
+ prefs.settings.privacy.drm_enabled.value)]]">
</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