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

Unified Diff: content/app/content_main_runner.cc

Issue 2365273004: Initial implementation for sharing field trial state (win) (Closed)
Patch Set: add missing include 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
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index a17d020a3c26cbb2657f36326712a58236312063..117f1a64c57de43f2bd7c9365366b7c49c0553db 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -32,6 +32,7 @@
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/process/memory.h"
+#include "base/process/process.h"
Alexei Svitkine (slow) 2016/10/06 21:39:28 Is this include needed?
lawrencewu 2016/10/07 15:07:21 Nope. Removed.
#include "base/process/process_handle.h"
#include "base/profiler/scoped_tracker.h"
#include "base/strings/string_number_conversions.h"
@@ -145,12 +146,8 @@ void InitializeFieldTrialAndFeatureList(
// Ensure any field trials in browser are reflected into the child
// process.
- if (command_line.HasSwitch(switches::kForceFieldTrials)) {
- bool result = base::FieldTrialList::CreateTrialsFromString(
- command_line.GetSwitchValueASCII(switches::kForceFieldTrials),
- std::set<std::string>());
- DCHECK(result);
- }
+ base::FieldTrialList::CreateTrialsFromCommandLine(
+ command_line, switches::kFieldTrialHandle);
std::unique_ptr<base::FeatureList> feature_list(new base::FeatureList);
feature_list->InitializeFromCommandLine(

Powered by Google App Engine
This is Rietveld 408576698