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

Unified Diff: chrome/browser/resources/settings/people_page/people_page.js

Issue 1806123002: Settings People Revamp: Easy Unlock: Add browser proxy and setup flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/people_page/people_page.js
diff --git a/chrome/browser/resources/settings/people_page/people_page.js b/chrome/browser/resources/settings/people_page/people_page.js
index 6e5f80d6878ac1deb02ed79d3c8d43808e5dc9cb..eb89c641024714c3fe8f3ea9e1dfc1e452f25796 100644
--- a/chrome/browser/resources/settings/people_page/people_page.js
+++ b/chrome/browser/resources/settings/people_page/people_page.js
@@ -57,6 +57,14 @@ Polymer({
profileName_: String,
<if expr="chromeos">
+ /** @private {!settings.EasyUnlockBrowserProxyImpl} */
+ browserProxy_: {
+ type: Object,
+ value: function() {
+ return settings.EasyUnlockBrowserProxyImpl.getInstance();
+ },
+ },
+
/**
* True if Easy Unlock is allowed on this machine.
* @private {boolean}
@@ -93,6 +101,8 @@ Polymer({
this.addWebUIListener(
'easy-unlock-enabled-status',
this.handleEasyUnlockEnabledStatusChanged_.bind(this));
+ this.browserProxy_.getEnabledStatus().then(
+ this.handleEasyUnlockEnabledStatusChanged_.bind(this));
}
</if>
},
@@ -175,6 +185,18 @@ Polymer({
this.$.pages.setSubpageChain(['sync']);
},
+<if expr="chromeos">
+ /** @private */
+ onEasyUnlockSetupTap_: function() {
+ this.browserProxy_.launchSetup();
+ },
+
+ /** @private */
+ onEasyUnlockTurnOffTap_: function() {
+ // TODO(tommycli): Implement Easy Unlock turn off functionality.
+ },
+</if>
+
/** @private */
onManageOtherPeople_: function() {
<if expr="not chromeos">

Powered by Google App Engine
This is Rietveld 408576698