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

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

Issue 877033005: Use a stable device-user identifier for CryptAuth enrollments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Registers Easy Unlock local state entries. 73 // Registers Easy Unlock local state entries.
74 static void RegisterPrefs(PrefRegistrySimple* registry); 74 static void RegisterPrefs(PrefRegistrySimple* registry);
75 75
76 // Removes the hardlock state for the given user. 76 // Removes the hardlock state for the given user.
77 static void ResetLocalStateForUser(const std::string& user_id); 77 static void ResetLocalStateForUser(const std::string& user_id);
78 78
79 // Returns the user's preferences. 79 // Returns the user's preferences.
80 static UserSettings GetUserSettings(const std::string& user_id); 80 static UserSettings GetUserSettings(const std::string& user_id);
81 81
82 // Returns the identifier for the device.
83 static std::string GetDeviceId();
84
82 // Returns true if Easy sign-in is enabled. 85 // Returns true if Easy sign-in is enabled.
83 static bool IsSignInEnabled(); 86 static bool IsSignInEnabled();
84 87
85 // Returns the EasyUnlockService type. 88 // Returns the EasyUnlockService type.
86 virtual Type GetType() const = 0; 89 virtual Type GetType() const = 0;
87 90
88 // Returns the user currently associated with the service. 91 // Returns the user currently associated with the service.
89 virtual std::string GetUserEmail() const = 0; 92 virtual std::string GetUserEmail() const = 0;
90 93
91 // Launches Easy Unlock Setup app. 94 // Launches Easy Unlock Setup app.
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 bool tpm_key_checked_; 298 bool tpm_key_checked_;
296 299
297 ObserverList<EasyUnlockServiceObserver> observers_; 300 ObserverList<EasyUnlockServiceObserver> observers_;
298 301
299 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; 302 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
300 303
301 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); 304 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
302 }; 305 };
303 306
304 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ 307 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698