| Index: content/common/sandbox_win.cc
|
| diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
|
| index 8f76710bc8d36685efbf1e691941fae03b55dfc7..f769a732f0d96bc4e4d1f2b97c8bfe63336148e5 100644
|
| --- a/content/common/sandbox_win.cc
|
| +++ b/content/common/sandbox_win.cc
|
| @@ -575,6 +575,16 @@ void AddBaseHandleClosePolicy(sandbox::TargetPolicy* policy) {
|
| policy->AddKernelObjectToClose(L"Section", object_path.data());
|
| }
|
|
|
| +void AddAppContainerPolicy(sandbox::TargetPolicy* policy, const wchar_t* sid) {
|
| + if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
|
| + const base::CommandLine& command_line =
|
| + *base::CommandLine::ForCurrentProcess();
|
| + if (!command_line.HasSwitch(switches::kDisableAppContainer)) {
|
| + policy->SetLowBox(sid);
|
| + }
|
| + }
|
| +}
|
| +
|
| bool InitBrokerServices(sandbox::BrokerServices* broker_services) {
|
| // TODO(abarth): DCHECK(CalledOnValidThread());
|
| // See <http://b/1287166>.
|
|
|