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