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

Unified Diff: components/variations/child_process_field_trial_syncer_unittest.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 | « base/metrics/field_trial_unittest.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/variations/child_process_field_trial_syncer_unittest.cc
diff --git a/components/variations/child_process_field_trial_syncer_unittest.cc b/components/variations/child_process_field_trial_syncer_unittest.cc
index 3e63c2f7eaed2be3762a6ecce56af092865ffc55..49b574ce8f604250ad113fa66ef6be0bd898943d 100644
--- a/components/variations/child_process_field_trial_syncer_unittest.cc
+++ b/components/variations/child_process_field_trial_syncer_unittest.cc
@@ -54,8 +54,9 @@ std::pair<std::string, std::string> MakeStringPair(const std::string& a,
TEST(ChildProcessFieldTrialSyncerTest, FieldTrialState) {
base::MessageLoop message_loop;
base::FieldTrialList field_trial_list(nullptr);
+ // We don't use the descriptor here anyways so it's ok to pass -1.
base::FieldTrialList::CreateTrialsFromCommandLine(
- *base::CommandLine::ForCurrentProcess(), "field_trial_handle_switch");
+ *base::CommandLine::ForCurrentProcess(), "field_trial_handle_switch", -1);
base::FieldTrial* trial1 = base::FieldTrialList::CreateFieldTrial("A", "G1");
base::FieldTrial* trial2 = base::FieldTrialList::CreateFieldTrial("B", "G2");
« no previous file with comments | « base/metrics/field_trial_unittest.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698