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

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: accidently removed files 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Registers Easy Unlock local state entries. 76 // Registers Easy Unlock local state entries.
77 static void RegisterPrefs(PrefRegistrySimple* registry); 77 static void RegisterPrefs(PrefRegistrySimple* registry);
78 78
79 // Removes the hardlock state for the given user. 79 // Removes the hardlock state for the given user.
80 static void ResetLocalStateForUser(const std::string& user_id); 80 static void ResetLocalStateForUser(const std::string& user_id);
81 81
82 // Returns the user's preferences. 82 // Returns the user's preferences.
83 static UserSettings GetUserSettings(const std::string& user_id); 83 static UserSettings GetUserSettings(const std::string& user_id);
84 84
85 // Returns the identifier for the device.
86 static std::string GetDeviceId();
87
85 // Returns true if Easy sign-in is enabled. 88 // Returns true if Easy sign-in is enabled.
86 static bool IsSignInEnabled(); 89 static bool IsSignInEnabled();
87 90
88 // Returns the EasyUnlockService type. 91 // Returns the EasyUnlockService type.
89 virtual Type GetType() const = 0; 92 virtual Type GetType() const = 0;
90 93
91 // Returns the user currently associated with the service. 94 // Returns the user currently associated with the service.
92 virtual std::string GetUserEmail() const = 0; 95 virtual std::string GetUserEmail() const = 0;
93 96
94 // Launches Easy Unlock setup app. 97 // Launches Easy Unlock setup app.
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 bool tpm_key_checked_; 328 bool tpm_key_checked_;
326 329
327 ObserverList<EasyUnlockServiceObserver> observers_; 330 ObserverList<EasyUnlockServiceObserver> observers_;
328 331
329 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; 332 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
330 333
331 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); 334 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
332 }; 335 };
333 336
334 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ 337 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698