about:gpu doesn't report sanboxing status correctly on OSX

The GPU is sandboxed on Mac, this value just defaults to "false"
and so we don't report it correctly.

NOTRY=true
BUG=348914

R=kbr@chromium.org

Review URL: https://codereview.chromium.org/385463005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282606 0039d316-1c4b-4281-b951-d872f2087c98
parent e6abea11
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
#include "base/message_loop/message_pump_mac.h" #include "base/message_loop/message_pump_mac.h"
#include "content/common/sandbox_mac.h"
#endif #endif
#if defined(ADDRESS_SANITIZER) #if defined(ADDRESS_SANITIZER)
...@@ -320,6 +321,8 @@ int GpuMain(const MainFunctionParams& parameters) { ...@@ -320,6 +321,8 @@ int GpuMain(const MainFunctionParams& parameters) {
} }
#elif defined(OS_WIN) #elif defined(OS_WIN)
gpu_info.sandboxed = StartSandboxWindows(parameters.sandbox_info); gpu_info.sandboxed = StartSandboxWindows(parameters.sandbox_info);
#elif defined(OS_MACOSX)
gpu_info.sandboxed = Sandbox::SandboxIsCurrentlyActive();
#endif #endif
} else { } else {
dead_on_arrival = true; dead_on_arrival = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment