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

Side by Side Diff: chrome/browser/signin/easy_unlock_screenlock_state_handler.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual ~EasyUnlockScreenlockStateHandler(); 56 virtual ~EasyUnlockScreenlockStateHandler();
57 57
58 // Changes internal state to |new_state| and updates the user's screenlock 58 // Changes internal state to |new_state| and updates the user's screenlock
59 // accordingly. 59 // accordingly.
60 void ChangeState(State new_state); 60 void ChangeState(State new_state);
61 61
62 private: 62 private:
63 // ScreenlockBridge::Observer: 63 // ScreenlockBridge::Observer:
64 virtual void OnScreenDidLock() OVERRIDE; 64 virtual void OnScreenDidLock() OVERRIDE;
65 virtual void OnScreenDidUnlock() OVERRIDE; 65 virtual void OnScreenDidUnlock() OVERRIDE;
66 virtual void OnFocusedUserChanged(const std::string& user_id) OVERRIDE;
66 67
67 // Updates icon's tooltip options. 68 // Updates icon's tooltip options.
68 // |trial_run|: Whether the trial Easy Unlock run is in progress. 69 // |trial_run|: Whether the trial Easy Unlock run is in progress.
69 void UpdateTooltipOptions( 70 void UpdateTooltipOptions(
70 bool trial_run, 71 bool trial_run,
71 ScreenlockBridge::UserPodCustomIconOptions* icon_options); 72 ScreenlockBridge::UserPodCustomIconOptions* icon_options);
72 73
73 // Whether this is the first, trial Easy Unlock run. If this is the case, a 74 // Whether this is the first, trial Easy Unlock run. If this is the case, a
74 // tutorial message should be shown and hard-locking be disabled in 75 // tutorial message should be shown and hard-locking be disabled in
75 // Authenticated state. The trial run will be active if Easy Unlock never 76 // Authenticated state. The trial run will be active if Easy Unlock never
(...skipping 12 matching lines...) Expand all
88 89
89 State state_; 90 State state_;
90 std::string user_email_; 91 std::string user_email_;
91 PrefService* pref_service_; 92 PrefService* pref_service_;
92 ScreenlockBridge* screenlock_bridge_; 93 ScreenlockBridge* screenlock_bridge_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); 95 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler);
95 }; 96 };
96 97
97 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 98 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698