This source file includes following definitions.
- EnableSandbox
#include "components/nacl/loader/nacl_main_platform_delegate.h"
#include "base/logging.h"
#include "sandbox/win/src/sandbox.h"
NaClMainPlatformDelegate::NaClMainPlatformDelegate(
const content::MainFunctionParams& parameters)
: parameters_(parameters) {
}
NaClMainPlatformDelegate::~NaClMainPlatformDelegate() {
}
void NaClMainPlatformDelegate::EnableSandbox() {
sandbox::TargetServices* target_services =
parameters_.sandbox_info->target_services;
CHECK(target_services) << "NaCl-Win EnableSandbox: No Target Services!";
unsigned int dummy_rand;
rand_s(&dummy_rand);
::GetUserDefaultLangID();
::GetUserDefaultLCID();
target_services->LowerToken();
}