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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h

Issue 668213003: Reauthenticate the user before launching Smart Lock setup app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes + git cl format Created 6 years, 1 month 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h
new file mode 100644
index 0000000000000000000000000000000000000000..041dc8722776e087ed1b46941b6b61cfb6efd7c5
--- /dev/null
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h
@@ -0,0 +1,31 @@
+// Copyright 2014 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_
+
+#include "base/callback_forward.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace chromeos {
+
+class UserContext;
+
+// Responsible for locking the screen and reauthenticating the user so we can
+// create new cryptohome keys for passwordless sign-in.
+class EasyUnlockReauth {
+ public:
+ typedef base::Callback<void(const UserContext&)> UserContextCallback;
+
+ // Launches the reauth screen to get the user context. If the screen fails
+ // for some reason, then this function will return false.
+ static bool ReauthForUserContext(UserContextCallback callback);
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(EasyUnlockReauth);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698