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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: . 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 5fca438d75ce62b02dd7d5cba70f9b8796e10f20..e9d04d9f798526050a0b7aa5351ed397f4783b3a 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -435,7 +435,8 @@ ProfileImpl::ProfileImpl(
"profile files to the root directory!";
#if defined(OS_CHROMEOS)
- if (!chromeos::ProfileHelper::IsSigninProfile(this)) {
+ if (!chromeos::ProfileHelper::IsSigninProfile(this) &&
+ !chromeos::ProfileHelper::IsLockScreenAppProfile(this)) {
const user_manager::User* user =
chromeos::ProfileHelper::Get()->GetUserByProfile(this);
// A |User| instance should always exist for a profile which is not the
@@ -693,7 +694,8 @@ void ProfileImpl::DoFinalInit() {
// mark the session as initialized. Need to do this before we restart below
// so we don't get in a weird state where we restart before the session is
// marked as initialized and so try to initialize it again.
- if (!chromeos::ProfileHelper::IsSigninProfile(this)) {
+ if (!chromeos::ProfileHelper::IsSigninProfile(this) &&
+ !chromeos::ProfileHelper::IsLockScreenAppProfile(this)) {
chromeos::ProfileHelper* profile_helper = chromeos::ProfileHelper::Get();
user_manager::UserManager::Get()->OnProfileInitialized(
profile_helper->GetUserByProfile(this));

Powered by Google App Engine
This is Rietveld 408576698