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

Unified Diff: chrome/browser/resources/settings/people_page/quick_unlock_choose_method.html

Issue 2097673002: Add a settings screen that lets the user choose how they unlock their device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pin-unlock-settings-authenticate
Patch Set: Address comments Created 4 years, 5 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/people_page/quick_unlock_choose_method.html
diff --git a/chrome/browser/resources/settings/people_page/quick_unlock_choose_method.html b/chrome/browser/resources/settings/people_page/quick_unlock_choose_method.html
new file mode 100644
index 0000000000000000000000000000000000000000..bff939bbea582710c7802148061f4b5521af9c5d
--- /dev/null
+++ b/chrome/browser/resources/settings/people_page/quick_unlock_choose_method.html
@@ -0,0 +1,63 @@
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
+<link rel="import" href="/people_page/pin_keyboard.html">
+<link rel="import" href="/people_page/quick_unlock_routing_behavior.html">
+<link rel="import" href="/people_page/quick_unlock_password_detect_behavior.html">
+<link rel="import" href="/prefs/prefs_behavior.html">
+<link rel="import" href="/settings_page/settings_section.html">
+<link rel="import" href="/settings_shared_css.html">
+
+
+<dom-module id="settings-quick-unlock-choose-method">
+ <template>
+ <style include="settings-shared"></style>
+ <style>
+ #warning-message {
+ color: var(--paper-grey-500);
+ font-style: italic;
+ }
+
+ .align-end {
+ justify-content: flex-end;
+ }
+ </style>
+
+ <div>
+ <div class="settings-box">
+ $i18n{quickUnlockChooseUnlockMethod}
+ </div>
+
+ <div class="list-frame">
+ <paper-radio-group selected="{{selectedUnlockType_}}">
+ <paper-radio-button name="password">
+ $i18n{quickUnlockUnlockMethodPassword}
+ </paper-radio-button>
+ <paper-radio-button name="pin+password">
+ $i18n{quickUnlockUnlockMethodPinAndPassword}
+ </paper-radio-button>
+ <paper-radio-button name="none">
+ $i18n{quickUnlockUnlockMethodNone}
+ </paper-radio-button>
+ </paper-radio-group>
+ </div>
+
+ <div class="step" hidden$="[[!showSetupPin_(selectedUnlockType_)]]">
+ <div class="settings-box continuation">
+ <!-- TODO(jdufault): i18n once this string is finalized. -->
+ <span id="warning-message">
+ Warning about how PIN is weaker than a password.
+ </span>
+ </div>
+
+ <div class="align-end settings-box">
+ <paper-button class="action-button" on-tap="onConfigurePin_">
+ $i18n{quickUnlockConfigurePinButton}
+ </paper-button>
+ </div>
+ </div>
+ </div>
+ </template>
+
+ <script src="quick_unlock_choose_method.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698