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

Unified Diff: content/browser/child_process_launcher.cc

Issue 2530573002: Share field trial allocator on zygote-using Linuxes (Closed)
Patch Set: address comments Created 4 years, 1 month 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
« base/metrics/field_trial.cc ('K') | « base/metrics/field_trial.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index c90475f8576e6b4afd2e2595f6f5c18542c733fe..3809ab542f21b7157133540e5e06df1a6a7df5cd 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -164,6 +164,9 @@ void LaunchOnLauncherThread(const NotifyCallback& callback,
base::ScopedFD mojo_fd(client_handle.release().handle);
DCHECK(mojo_fd.is_valid());
+ int field_trial_handle = base::FieldTrialList::GetFieldTrialHandle();
+ if (field_trial_handle != -1)
Alexei Svitkine (slow) 2016/11/24 18:23:19 Check for the constant.
lawrencewu 2016/11/24 18:48:59 Done.
+ files_to_register->Share(field_trial_handle, field_trial_handle);
#if defined(OS_ANDROID)
files_to_register->Share(kMojoIPCChannel, mojo_fd.get());
#else
« base/metrics/field_trial.cc ('K') | « base/metrics/field_trial.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698