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

Unified Diff: extensions/browser/process_map_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
« no previous file with comments | « chrome/test/base/testing_profile_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/process_map_factory.cc
diff --git a/extensions/browser/process_map_factory.cc b/extensions/browser/process_map_factory.cc
index 26c448799fd9f4681a6ac07fa926613c97f7f0fd..8e93e3f6c7e1437b51002468f526a9fc074e556b 100644
--- a/extensions/browser/process_map_factory.cc
+++ b/extensions/browser/process_map_factory.cc
@@ -34,7 +34,10 @@ ProcessMapFactory::~ProcessMapFactory() {}
KeyedService* ProcessMapFactory::BuildServiceInstanceFor(
BrowserContext* context) const {
- return new ProcessMap;
+ ProcessMap* process_map = new ProcessMap();
+ process_map->set_is_lock_screen_context(
+ ExtensionsBrowserClient::Get()->IsLockScreenContext(context));
+ return process_map;
}
BrowserContext* ProcessMapFactory::GetBrowserContextToUse(
« no previous file with comments | « chrome/test/base/testing_profile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698