| Index: content/browser/gpu/gpu_process_host.cc
|
| diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
|
| index 367a69d9323fd065203a78416690ba86d09ad846..bd2ac7debe108e59dfa71f259d393c0c70c19587 100644
|
| --- a/content/browser/gpu/gpu_process_host.cc
|
| +++ b/content/browser/gpu/gpu_process_host.cc
|
| @@ -973,8 +973,14 @@ bool GpuProcessHost::LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences) {
|
|
|
| base::CommandLine* cmd_line = new base::CommandLine(exe_path);
|
| #endif
|
| +
|
| cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess);
|
| - BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(cmd_line);
|
| +
|
| +#if defined(OS_WIN)
|
| + field_trial_state_.reset(new base::SharedMemory());
|
| +#endif
|
| + BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(
|
| + cmd_line, field_trial_state_.get());
|
|
|
| #if defined(OS_WIN)
|
| cmd_line->AppendArg(switches::kPrefetchArgumentGpu);
|
| @@ -1018,10 +1024,8 @@ bool GpuProcessHost::LaunchGpuProcess(gpu::GpuPreferences* gpu_preferences) {
|
| cmd_line->PrependWrapper(gpu_launcher);
|
|
|
| process_->Launch(
|
| - new GpuSandboxedProcessLauncherDelegate(cmd_line,
|
| - process_->GetHost()),
|
| - cmd_line,
|
| - true);
|
| + new GpuSandboxedProcessLauncherDelegate(cmd_line, process_->GetHost()),
|
| + cmd_line, field_trial_state_.get(), true);
|
| process_launched_ = true;
|
|
|
| UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents",
|
|
|