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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2365273004: Initial implementation for sharing field trial state (win) (Closed)
Patch Set: rebase + gclient sync Created 4 years, 2 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/browser/gpu/gpu_process_host.h ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 423079449b5c59bb8d48c56d36e9cd8872bf233b..d444801edc489e268626263ac59369f0aa7c472c 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -970,8 +970,11 @@ 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);
+
+ field_trial_state_ =
+ BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(cmd_line);
#if defined(OS_WIN)
cmd_line->AppendArg(switches::kPrefetchArgumentGpu);
@@ -1015,10 +1018,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",
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698