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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/autofill_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/autofill_section.html
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html
index fd464fcc022e8fdc337172868b249099b6d63294..dbc417466e2ae1261a99eabdcf17c90eebc83d3e 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html
@@ -1,10 +1,14 @@
<link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html">
<link rel="import" href="chrome://resources/html/action_link.html">
<link rel="import" href="chrome://resources/html/action_link_css.html">
+<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../i18n_setup.html">
<link rel="import" href="../settings_shared_css.html">
+<link rel="import" href="../controls/extension_controlled_indicator.html">
+<link rel="import" href="../controls/settings_toggle_button.html">
+<link rel="import" href="../prefs/prefs.html">
<link rel="import" href="address_edit_dialog.html">
<link rel="import" href="credit_card_edit_dialog.html">
<link rel="import" href="passwords_shared_css.html">
@@ -52,6 +56,24 @@
}
</style>
<div class="settings-box first">
+ <settings-toggle-button id="autofillToggle" class="start primary-toggle"
+ aria-label="$i18n{autofill}" no-extension-indicator
+ label="[[getOnOffLabel_(prefs.autofill.enabled.value)]]"
+ pref="{{prefs.autofill.enabled}}">
+ </settings-toggle-button>
+ </div>
+ <template is="dom-if" if="[[prefs.autofill.enabled.extensionId]]">
+ <div class="settings-box continuation">
+ <extension-controlled-indicator class="start"
+ id="autofillExtensionIndicator"
+ extension-id="[[prefs.autofill.enabled.extensionId]]"
+ extension-name="[[prefs.autofill.enabled.controlledByName]]"
+ extension-can-be-disabled="[[
+ prefs.autofill.enabled.extensionCanBeDisabled]]">
+ </extension-controlled-indicator>
+ </div>
+ </template>
+ <div class="settings-box continuation">
<h2 class="start">$i18n{addresses}</h2>
<paper-button class="secondary-button header-aligned-button"
on-tap="onAddAddressTap_">
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698