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

Unified Diff: extensions/browser/renderer_startup_helper.cc

Issue 2892403002: Introduce lock screen app context to extension features (Closed)
Patch Set: . 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 | « extensions/browser/process_map_unittest.cc ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/renderer_startup_helper.cc
diff --git a/extensions/browser/renderer_startup_helper.cc b/extensions/browser/renderer_startup_helper.cc
index 55f6509a199e2ef7658982a326552d989d511594..da26e334bde7117e126ab3ca286d99c1a16bd5eb 100644
--- a/extensions/browser/renderer_startup_helper.cc
+++ b/extensions/browser/renderer_startup_helper.cc
@@ -103,8 +103,11 @@ void RendererStartupHelper::InitializeProcess(
// Extensions need to know the channel and the session type for API
// restrictions. The values are sent to all renderers, as the non-extension
// renderers may have content scripts.
- process->Send(new ExtensionMsg_SetSessionInfo(
- GetCurrentChannel(), GetCurrentFeatureSessionType()));
+ bool is_lock_screen_context =
+ client->IsLockScreenContext(process->GetBrowserContext());
+ process->Send(new ExtensionMsg_SetSessionInfo(GetCurrentChannel(),
+ GetCurrentFeatureSessionType(),
+ is_lock_screen_context));
// Platform apps need to know the system font.
// TODO(dbeam): this is not the system font in all cases.
« no previous file with comments | « extensions/browser/process_map_unittest.cc ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698