Index: components/proximity_auth/webui/resources/local-state.js |
diff --git a/components/proximity_auth/webui/resources/local-state.js b/components/proximity_auth/webui/resources/local-state.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0384f080950aa310b075dfe3db8f9d95a6c7996b |
--- /dev/null |
+++ b/components/proximity_auth/webui/resources/local-state.js |
@@ -0,0 +1,56 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+Polymer('local-state', { |
+ publish: { |
+ /** |
+ * The current CryptAuth enrollment status. |
+ * @type {{ |
+ * lastSuccessTime: ?number, |
+ * nextRefreshTime: string, |
+ * lastAttemptFailed: boolean, |
+ * }} |
+ */ |
+ enrollmentInfo: { |
+ lastSuccessTime: null, |
+ nextRefreshTime: '90 days', |
+ lastAttemptFailed: true |
+ }, |
+ |
+ /** |
+ * The current CryptAuth device sync status. |
+ * @type {{ |
+ * lastSuccessTime: ?number, |
+ * nextRefreshTime: string, |
+ * lastAttemptFailed: boolean, |
+ * }} |
+ */ |
+ deviceSyncInfo: { |
+ lastSuccessTime: "April 20 14:23", |
+ nextRefreshTime: '15.5 hours', |
+ lastAttemptFailed: false |
+ }, |
+ |
+ /** |
+ * List of unlock keys that can unlock the local device. |
+ * @type {Array<DeviceInfo>} |
+ */ |
+ unlockKeys: [ |
+ { |
+ publicKey: "CAESRQogOlH8DgPMQu7eAt-b6yoTXcazG8mAl6SPC5Ds-LTULIcSIQDZDM" + |
+ "qsoYRO4tNMej1FBEl1sTiTiVDqrcGq-CkYCzDThw==", |
+ friendlyDeviceName: "LGE Nexus 4", |
+ bluetoothAddress: "C4:43:8F:12:07:07", |
+ unlockKey: true, |
+ unlockable: false, |
+ connectionStatus: 'connected', |
+ remoteState: { |
+ userPresent: true, |
+ secureScreenLock: true, |
+ trustAgent: true |
+ }, |
+ }, |
+ ], |
+ }, |
+}); |