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

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..831a0aa0c165712569ca75c85e0c9d802c11deb3 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} */
+ easyUnlockBrowserProxy_: {
dpapad 2016/03/16 22:17:01 Nit: How about renaming this simply to "browserPro
tommycli 2016/03/17 00:33:26 Done.
+ type: Object,
+ value: function() {
+ return settings.EasyUnlockBrowserProxyImpl.getInstance();
dpapad 2016/03/16 22:17:01 Do you think it would be worth adding unit tests f
tommycli 2016/03/17 00:33:26 Yes, the unit tests are in the very next patch I'm
dpapad 2016/03/17 00:52:23 No need to merge them. I'll review the follow up o
tommycli 2016/03/17 18:38:07 Exactly. The data is retrieved via cr.sendWithProm
+ },
+ },
+
/**
* 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.easyUnlockBrowserProxy_.getEnabledStatus().then(
+ this.handleEasyUnlockEnabledStatusChanged_.bind(this));
}
</if>
},
@@ -175,6 +185,18 @@ Polymer({
this.$.pages.setSubpageChain(['sync']);
},
+<if expr="chromeos">
+ /** @private */
+ onEasyUnlockSetupTap_: function() {
+ this.easyUnlockBrowserProxy_.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