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

Unified Diff: components/proximity_auth/webui/resources/local-state.js

Issue 1108713002: Add chrome://proximity-auth UI implemented with Polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: 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
+ },
+ },
+ ],
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698