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

Unified Diff: content/browser/child_process_launcher.cc

Issue 2530573002: Share field trial allocator on zygote-using Linuxes (Closed)
Patch Set: add check back 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
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/public/common/content_descriptors.h » ('j') | 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..12b2dee98a37175a9194dfa954b43996616ae1e1 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 != base::kInvalidPlatformFile)
+ files_to_register->Share(kFieldTrialDescriptor, field_trial_handle);
#if defined(OS_ANDROID)
files_to_register->Share(kMojoIPCChannel, mojo_fd.get());
#else
« no previous file with comments | « content/app/content_main_runner.cc ('k') | content/public/common/content_descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698