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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: rebase Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc
index 04a96fb508b65f32959eeb01c0f6b2edd7eda355..1202c44363589b60cb2e4f115e73538d152f6f82 100644
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc
@@ -64,6 +64,8 @@ KeyedService* EasyUnlockTpmKeyManagerFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = Profile::FromBrowserContext(context);
const user_manager::User* user = NULL;
+ if (chromeos::ProfileHelper::IsLockScreenAppProfile(profile))
+ return nullptr;
if (!chromeos::ProfileHelper::IsSigninProfile(profile))
user = chromeos::ProfileHelper::Get()->GetUserByProfile(profile);
return new EasyUnlockTpmKeyManager(

Powered by Google App Engine
This is Rietveld 408576698