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

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

Issue 2149953002: Enable login screen apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Devlin and Maksim feedback Created 3 years, 9 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_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 41aca8d675d178de5c471fb8df4a030129da7654..6432041141ded5eac1548705e19b6282ad8aa95d 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -1202,8 +1202,16 @@ void ProfileManager::DoFinalInitForServices(Profile* profile,
HostContentSettingsMap* content_settings_map =
HostContentSettingsMapFactory::GetForProfile(profile);
+ bool extensions_enabled = !go_off_the_record;
+#if defined(OS_CHROMEOS)
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableLoginScreenApps) &&
+ chromeos::ProfileHelper::IsSigninProfile(profile)) {
+ extensions_enabled = true;
+ }
+#endif
extensions::ExtensionSystem::Get(profile)->InitForRegularProfile(
- !go_off_the_record);
+ extensions_enabled);
// During tests, when |profile| is an instance of TestingProfile,
// ExtensionSystem might not create an ExtensionService.
// This block is duplicated in the HostContentSettingsMapFactory

Powered by Google App Engine
This is Rietveld 408576698