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

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

Issue 2617533003: MD Settings: change most checkboxes to toggles (leave dialogs alone) (Closed)
Patch Set: fix tests Created 3 years, 11 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/search_page/search_page.html
diff --git a/chrome/browser/resources/settings/search_page/search_page.html b/chrome/browser/resources/settings/search_page/search_page.html
index 0320f0f3e31c165f2bf19fcebfbbe40e22acd3aa..96b4ba010309e2efe11ccfed14a9863297125388 100644
--- a/chrome/browser/resources/settings/search_page/search_page.html
+++ b/chrome/browser/resources/settings/search_page/search_page.html
@@ -5,7 +5,7 @@
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="/controls/extension_controlled_indicator.html">
-<link rel="import" href="/controls/settings_checkbox.html">
+<link rel="import" href="/controls/settings_toggle_button.html">
<link rel="import" href="/icons.html">
<link rel="import" href="/i18n_setup.html">
<link rel="import" href="/route.html">
@@ -67,27 +67,27 @@
<template is="dom-if" if="[[googleNowAvailable_]]">
<!-- Google Now cards in the launcher -->
<div class="settings-box continuation">
- <settings-checkbox id="googleNowEnable"
- label="$i18n{searchEnableGoogleNowLabel}"
- pref="{{prefs.google_now_launcher.enabled}}">
- </settings-checkbox>
+ <settings-toggle-button id="googleNowEnable" class="start"
+ pref="{{prefs.google_now_launcher.enabled}}"
+ label="$i18n{searchEnableGoogleNowLabel}">
+ </settings-toggle-button>
</div>
</template>
<template is="dom-if" if="[[hotwordInfo_.allowed]]">
<!-- Hotword (OK Google) -->
<div class="settings-box two-line continuation">
- <settings-checkbox id="hotwordSearchEnable" class="start"
+ <settings-toggle-button id="hotwordSearchEnable" class="start"
+ pref="{{hotwordSearchEnablePref_}}"
label="$i18n{searchOkGoogleLabel}"
sub-label="[[getHotwordSearchEnableSubLabel_(
hotwordInfo_.alwaysOn)]]"
- pref="{{hotwordSearchEnablePref_}}"
on-change="onHotwordSearchEnableChange_">
<a href="$i18nRaw{hotwordLearnMoreUrl}" target="_blank"
on-tap="doNothing_">
$i18n{searchOkGoogleLearnMore}
</a>
- </settings-checkbox>
+ </settings-toggle-button>
<div class="secondary-action"
hidden$="[[!getShowHotwordSearchRetrain_(hotwordInfo_.*)]]">
<paper-button on-tap="onRetrainTap_" class="secondary-button">

Powered by Google App Engine
This is Rietveld 408576698