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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_vars_cs s.html"> 2 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_vars_cs s.html">
3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
8 <link rel="import" href="../clear_browsing_data_dialog/clear_browsing_data_dialo g.html"> 8 <link rel="import" href="../clear_browsing_data_dialog/clear_browsing_data_dialo g.html">
9 <link rel="import" href="../controls/settings_toggle_button.html"> 9 <link rel="import" href="../controls/settings_toggle_button.html">
10 <link rel="import" href="../lifetime_browser_proxy.html"> 10 <link rel="import" href="../lifetime_browser_proxy.html">
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 </site-data-details-subpage> 438 </site-data-details-subpage>
439 </settings-subpage> 439 </settings-subpage>
440 </template> 440 </template>
441 <if expr="chromeos or is_win"> 441 <if expr="chromeos or is_win">
442 <template is="dom-if" route-path="/content/protectedContent" no-search> 442 <template is="dom-if" route-path="/content/protectedContent" no-search>
443 <settings-subpage page-title="$i18n{siteSettingsProtectedContent}"> 443 <settings-subpage page-title="$i18n{siteSettingsProtectedContent}">
444 <div class="settings-box first two-line"> 444 <div class="settings-box first two-line">
445 $i18n{siteSettingsProtectedContentExplanation} 445 $i18n{siteSettingsProtectedContentExplanation}
446 </div> 446 </div>
447 <div class="settings-box first"> 447 <div class="settings-box first">
448 <!-- TODO(dschuyler): change i18n to i18nStr. -->
448 <settings-toggle-button class="start" 449 <settings-toggle-button class="start"
449 pref="{{prefs.settings.privacy.drm_enabled}}" 450 pref="{{prefs.settings.privacy.drm_enabled}}"
450 label="$i18n{siteSettingsProtectedContentEnable}"> 451 label="[[getStringTernary_(
452 prefs.settings.privacy.drm_enabled.value,
453 '$i18n{siteSettingsProtectedContentEnable}',
454 '$i18n{siteSettingsBlocked}')]]">
451 </settings-toggle-button> 455 </settings-toggle-button>
452 </div> 456 </div>
453 <if expr="chromeos"> 457 <if expr="chromeos">
454 <category-setting-exceptions 458 <category-setting-exceptions
455 category="{{ContentSettingsTypes.PROTECTED_CONTENT}}"> 459 category="{{ContentSettingsTypes.PROTECTED_CONTENT}}">
456 </category-setting-exceptions> 460 </category-setting-exceptions>
457 </if> 461 </if>
458 </settings-subpage> 462 </settings-subpage>
459 </template> 463 </template>
460 </if> 464 </if>
461 </settings-animated-pages> 465 </settings-animated-pages>
462 </template> 466 </template>
463 <script src="privacy_page.js"></script> 467 <script src="privacy_page.js"></script>
464 </dom-module> 468 </dom-module>
OLDNEW
« 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