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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.html

Issue 2762433002: MD Settings: move autofill and manage password toggles to their subpages. (Closed)
Patch Set: use this.i18n instead Created 3 years, 9 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/passwords_and_forms_page/passwords_section.html
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.html b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.html
index 04806d49b6bc90de534094fc0b83e5eb31a97f32..e757a0011d43d632bdf66b5480cc67c080a2b307 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.html
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.html
@@ -2,9 +2,12 @@
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/action_link.html">
<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../controls/settings_toggle_button.html">
+<link rel="import" href="../controls/extension_controlled_indicator.html">
+<link rel="import" href="../controls/settings_toggle_button.html">
<link rel="import" href="../global_scroll_target_behavior.html">
<link rel="import" href="../prefs/prefs.html">
<link rel="import" href="../settings_shared_css.html">
@@ -53,7 +56,27 @@
-webkit-user-select: text;
}
</style>
- <div class="settings-box first three-line">
+ <div class="settings-box first">
+ <settings-toggle-button id="passwordToggle" class="start primary-toggle"
+ aria-label="$i18n{passwords}" no-extension-indicator
+ label="[[getOnOffLabel_(prefs.credentials_enable_service.value)]]"
+ pref="{{prefs.credentials_enable_service}}">
+ </settings-toggle-button>
+ </div>
+ <template is="dom-if"
+ if="[[prefs.credentials_enable_service.extensionId]]">
+ <div class="settings-box continuation">
+ <extension-controlled-indicator class="start"
+ id="passwordsExtensionIndicator"
+ extension-id="[[prefs.credentials_enable_service.extensionId]]"
+ extension-name="[[
+ prefs.credentials_enable_service.controlledByName]]"
+ extension-can-be-disabled="[[
+ prefs.credentials_enable_service.extensionCanBeDisabled]]">
+ </extension-controlled-indicator>
+ </div>
+ </template>
+ <div class="settings-box three-line">
<settings-toggle-button id="autosigninCheckbox" class="start"
pref="{{prefs.credentials_enable_autosignin}}"
label="$i18n{passwordsAutosigninLabel}"

Powered by Google App Engine
This is Rietveld 408576698