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

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

Issue 485243002: Fix few minor easy unlock bugs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
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 20 matching lines...) Expand all
31 // authenticated. 31 // authenticated.
32 STATE_PHONE_NOT_AUTHENTICATED, 32 STATE_PHONE_NOT_AUTHENTICATED,
33 // A phone eligible to unlock the device is found, but it's locked. 33 // A phone eligible to unlock the device is found, but it's locked.
34 STATE_PHONE_LOCKED, 34 STATE_PHONE_LOCKED,
35 // A phone eligible to unlock the device is found, but does not have lock 35 // A phone eligible to unlock the device is found, but does not have lock
36 // screen enabled. 36 // screen enabled.
37 STATE_PHONE_UNLOCKABLE, 37 STATE_PHONE_UNLOCKABLE,
38 // A phone eligible to unlock the device is found, but it's not close enough 38 // A phone eligible to unlock the device is found, but it's not close enough
39 // to be allowed to unlock the device. 39 // to be allowed to unlock the device.
40 STATE_PHONE_NOT_NEARBY, 40 STATE_PHONE_NOT_NEARBY,
41 // An Easy Unlock enabled phone is found, but it is not allowed to unlock
42 // the device because it does not support reporting it's lock screen state.
43 STATE_PHONE_UNSUPPORTED,
41 // The device can be unlocked using Easy Unlock. 44 // The device can be unlocked using Easy Unlock.
42 STATE_AUTHENTICATED 45 STATE_AUTHENTICATED
43 }; 46 };
44 47
45 // |user_email|: The email for the user associated with the profile to which 48 // |user_email|: The email for the user associated with the profile to which
46 // this class is attached. 49 // this class is attached.
47 // |pref_service|: The profile preferences. 50 // |pref_service|: The profile preferences.
48 // |screenlock_bridge|: The screenlock bridge used to update the screen lock 51 // |screenlock_bridge|: The screenlock bridge used to update the screen lock
49 // state. 52 // state.
50 EasyUnlockScreenlockStateHandler(const std::string& user_email, 53 EasyUnlockScreenlockStateHandler(const std::string& user_email,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 88
86 State state_; 89 State state_;
87 std::string user_email_; 90 std::string user_email_;
88 PrefService* pref_service_; 91 PrefService* pref_service_;
89 ScreenlockBridge* screenlock_bridge_; 92 ScreenlockBridge* screenlock_bridge_;
90 93
91 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); 94 DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler);
92 }; 95 };
93 96
94 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_ 97 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SCREENLOCK_STATE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698