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

Unified Diff: chrome/browser/signin/screenlock_bridge.h

Issue 576343002: [Easy signin] Add method to get user info to easyUnlockPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win fix 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/browser/signin/screenlock_bridge.h
diff --git a/chrome/browser/signin/screenlock_bridge.h b/chrome/browser/signin/screenlock_bridge.h
index 379f447488d743b9624c3dd5efd569a0e82c03db..d732c0e147937944ac6a3556a2dffbfa9f13f48a 100644
--- a/chrome/browser/signin/screenlock_bridge.h
+++ b/chrome/browser/signin/screenlock_bridge.h
@@ -29,6 +29,8 @@ class ScreenlockBridge {
virtual void OnScreenDidLock() = 0;
// Invoked after the screen lock is dismissed.
virtual void OnScreenDidUnlock() = 0;
+ // Invoked when the user focused on the lock screen changes.
+ virtual void OnFocusedUserChanged(const std::string& user_id) = 0;
protected:
virtual ~Observer() {}
};
@@ -139,6 +141,7 @@ class ScreenlockBridge {
static std::string GetAuthenticatedUserEmail(Profile* profile);
void SetLockHandler(LockHandler* lock_handler);
+ void SetFocusedUser(const std::string& user_id);
bool IsLocked() const;
void Lock(Profile* profile);
@@ -149,6 +152,8 @@ class ScreenlockBridge {
LockHandler* lock_handler() { return lock_handler_; }
+ std::string focused_user_id() const { return focused_user_id_; }
+
private:
friend struct base::DefaultLazyInstanceTraits<ScreenlockBridge>;
friend struct base::DefaultDeleter<ScreenlockBridge>;
@@ -157,6 +162,8 @@ class ScreenlockBridge {
~ScreenlockBridge();
LockHandler* lock_handler_; // Not owned
+ // The last focused user's id.
+ std::string focused_user_id_;
ObserverList<Observer, true> observers_;
DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge);
« no previous file with comments | « chrome/browser/signin/easy_unlock_service_signin_chromeos.cc ('k') | chrome/browser/signin/screenlock_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698