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

Side by Side Diff: chrome/browser/signin/easy_unlock_screenlock_state_handler.h

Issue 628193003: [Easy Unlock] Update handling of the trial easy unlock/signin run (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 NO_PAIRING = 1 << 2 // Hard lock because there is no pairing data. 53 NO_PAIRING = 1 << 2 // Hard lock because there is no pairing data.
54 }; 54 };
55 55
56 // |user_email|: The email for the user associated with the profile to which 56 // |user_email|: The email for the user associated with the profile to which
57 // this class is attached. 57 // this class is attached.
58 // |pref_service|: The profile preferences. 58 // |pref_service|: The profile preferences.
59 // |screenlock_bridge|: The screenlock bridge used to update the screen lock 59 // |screenlock_bridge|: The screenlock bridge used to update the screen lock
60 // state. 60 // state.
61 EasyUnlockScreenlockStateHandler(const std::string& user_email, 61 EasyUnlockScreenlockStateHandler(const std::string& user_email,
62 HardlockState initial_hardlock_state, 62 HardlockState initial_hardlock_state,
63 PrefService* pref_service, 63 PrefService* local_state,
64 ScreenlockBridge* screenlock_bridge); 64 ScreenlockBridge* screenlock_bridge);
65 virtual ~EasyUnlockScreenlockStateHandler(); 65 virtual ~EasyUnlockScreenlockStateHandler();
66 66
67 // Changes internal state to |new_state| and updates the user's screenlock 67 // Changes internal state to |new_state| and updates the user's screenlock
68 // accordingly. 68 // accordingly.
69 void ChangeState(State new_state); 69 void ChangeState(State new_state);
70 70
71 // Updates the screenlock state. 71 // Updates the screenlock state.
72 void SetHardlockState(HardlockState new_state); 72 void SetHardlockState(HardlockState new_state);
73 73
(...skipping 25 matching lines...) Expand all
99 99
100 // Gets the name to be used for the device. The name depends on the device 100 // Gets the name to be used for the device. The name depends on the device
101 // type (example values: Chromebook and Chromebox). 101 // type (example values: Chromebook and Chromebox).
102 base::string16 GetDeviceName(); 102 base::string16 GetDeviceName();
103 103
104 // Updates the screenlock auth type if it has to be changed. 104 // Updates the screenlock auth type if it has to be changed.
105 void UpdateScreenlockAuthType(); 105 void UpdateScreenlockAuthType();
106 106
107 State state_; 107 State state_;
108 std::string user_email_; 108 std::string user_email_;
109 PrefService* pref_service_; 109 PrefService* local_state_;
110 ScreenlockBridge* screenlock_bridge_; 110 ScreenlockBridge* screenlock_bridge_;
111 111
112 // State of hardlock. 112 // State of hardlock.
113 HardlockState hardlock_state_; 113 HardlockState hardlock_state_;
114 bool hardlock_ui_shown_; 114 bool hardlock_ui_shown_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); 116 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler);
117 }; 117 };
118 118
119 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 119 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698