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"> |