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

Unified Diff: content/gpu/gpu_main.cc

Issue 10915189: Show gpu process sandbox status in the about:gpu page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed .gitmodules. Created 8 years, 3 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 | « content/common/gpu/gpu_messages.h ('k') | content/public/common/gpu_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 306d96853addb35b5ad4b9ce458e64b27c9b6fe1..5e71bc2ffb2be0d1ee8e6f9b05c937aa388ae709 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -158,7 +158,7 @@ int GpuMain(const content::MainFunctionParams& parameters) {
#endif
if (do_init_sandbox) {
- content::InitializeSandbox();
+ gpu_info.sandboxed = content::InitializeSandbox();
}
}
#endif
@@ -171,8 +171,10 @@ int GpuMain(const content::MainFunctionParams& parameters) {
// content.
sandbox::TargetServices* target_services =
parameters.sandbox_info->target_services;
- if (target_services)
+ if (target_services) {
target_services->LowerToken();
+ gpu_info.sandboxed = true;
+ }
}
#endif
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/public/common/gpu_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698