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

Unified Diff: chrome/browser/chromeos/ownership/owner_settings_service_chromeos_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/ownership/owner_settings_service_chromeos_factory.cc
diff --git a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_factory.cc b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_factory.cc
index bbd4ca4800ee58802d4c4206ce751fda85a9880a..f8823ec9d3c8d81170ebdc6fc70998c4991981c7 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_factory.cc
+++ b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_factory.cc
@@ -78,8 +78,10 @@ void OwnerSettingsServiceChromeOSFactory::SetOwnerKeyUtilForTesting(
KeyedService* OwnerSettingsServiceChromeOSFactory::BuildInstanceFor(
content::BrowserContext* browser_context) {
Profile* profile = static_cast<Profile*>(browser_context);
- if (profile->IsGuestSession() || ProfileHelper::IsSigninProfile(profile))
- return NULL;
+ if (profile->IsGuestSession() || ProfileHelper::IsSigninProfile(profile) ||
+ ProfileHelper::IsLockScreenAppProfile(profile)) {
+ return nullptr;
+ }
return new OwnerSettingsServiceChromeOS(
GetDeviceSettingsService(),
profile,

Powered by Google App Engine
This is Rietveld 408576698