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

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

Issue 2149953002: Enable login screen apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional IsBackgroundPageAllowed check 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/extensions/installed_loader.cc
diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc
index 4f3cf1bec413ebf5f774f03334147a1a082f12cc..6e6fd2fcca827e3ebbe1166b7a7433f8a796df74 100644
--- a/chrome/browser/extensions/installed_loader.cc
+++ b/chrome/browser/extensions/installed_loader.cc
@@ -42,6 +42,10 @@
#include "extensions/common/manifest_handlers/background_info.h"
#include "extensions/common/manifest_url_handlers.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/profiles/profile_helper.h"
+#endif
+
using base::UserMetricsAction;
using content::BrowserThread;
@@ -307,6 +311,11 @@ void InstalledLoader::LoadAllExtensions() {
}
for (size_t i = 0; i < extensions_info->size(); ++i) {
+#if defined(OS_CHROMEOS)
+ // Don't load saved extensions in signin profile.
Devlin 2017/03/08 17:24:32 This seems like the wrong place to put this... we
achuithb 2017/03/09 14:31:06 I've tried to keep as much of the old behavior as
Devlin 2017/03/13 19:39:35 LoadAllExtensions() basically iterates over the pr
achuithb 2017/03/15 00:40:25 There's state in the signin profile - for example
+ if (chromeos::ProfileHelper::IsSigninProfile(profile))
+ break;
+#endif
if (extensions_info->at(i)->extension_location != Manifest::COMMAND_LINE)
Load(*extensions_info->at(i), should_write_prefs);
}

Powered by Google App Engine
This is Rietveld 408576698