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

Unified Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 2306143002: Plumbing for login apps device policy to extensions. (Closed)
Patch Set: Removed unnecessary logging Created 4 years, 1 month 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/extensions/extension_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index d15f0ec27437fd6a9cfbeefd4cfb19781b146f2a..bdaf85049b87e4a3dd4302e2aeb140500c708eb3 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -206,6 +206,11 @@ void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
bool autoupdate_enabled = !profile_->IsGuestSession() &&
!profile_->IsSystemProfile();
#if defined(OS_CHROMEOS)
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableSigninApps) &&
+ chromeos::ProfileHelper::IsSigninProfile(profile_)) {
+ extensions_enabled = true;
Devlin 2017/03/01 16:15:00 Seems like this should instead go where we call In
+ }
if (!extensions_enabled)
autoupdate_enabled = false;
#endif // defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698