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

Unified Diff: chrome/common/extensions/api/easy_unlock_private.idl

Issue 552893002: Introduce new chrome.easyUnlock APIs for getting the sign-in challenge and using it to sign-in the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update docs Created 6 years, 3 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/common/extensions/api/easy_unlock_private.idl
diff --git a/chrome/common/extensions/api/easy_unlock_private.idl b/chrome/common/extensions/api/easy_unlock_private.idl
index 6766a00d61d852264fae622f1f2391fee133181c..1e62e0eeb4ae9efe102d2799aef6c7c93a03ee2f 100644
--- a/chrome/common/extensions/api/easy_unlock_private.idl
+++ b/chrome/common/extensions/api/easy_unlock_private.idl
@@ -259,5 +259,14 @@
// Gets the remote device list.
static void getRemoteDevices(GetRemoteDevicesCallback callback);
+
+ // Gets the sign-in challenge for the current user.
+ static void getSignInChallenge(DataCallback callback);
+
+ // Tries to sign-in the current user with a secret obtained by decrypting
+ // the sign-in challenge. Check chrome.runtime.lastError for failures. Upon
+ // success, the user session will be started.
+ static void trySignInSecret(ArrayBuffer signInSecret,
+ EmptyCallback callback);
};
};

Powered by Google App Engine
This is Rietveld 408576698