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

Unified Diff: content/browser/browser_child_process_host_impl.cc

Issue 2546653002: Store and retrieve features from shared memory (Closed)
Patch Set: add comment Created 4 years 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_child_process_host_impl.cc
diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc
index c786b11b297cb2accdb11f6e0765ed8ad9c88d7a..d311660ad13d4cc6a93c1eba700ee8fd2d19a94b 100644
--- a/content/browser/browser_child_process_host_impl.cc
+++ b/content/browser/browser_child_process_host_impl.cc
@@ -219,19 +219,11 @@ void BrowserChildProcessHostImpl::TerminateAll() {
// static
void BrowserChildProcessHostImpl::CopyFeatureAndFieldTrialFlags(
base::CommandLine* cmd_line) {
- std::string enabled_features;
- std::string disabled_features;
- base::FeatureList::GetInstance()->GetFeatureOverrides(&enabled_features,
- &disabled_features);
- if (!enabled_features.empty())
- cmd_line->AppendSwitchASCII(switches::kEnableFeatures, enabled_features);
- if (!disabled_features.empty())
- cmd_line->AppendSwitchASCII(switches::kDisableFeatures, disabled_features);
-
// If we run base::FieldTrials, we want to pass to their state to the
// child process so that it can act in accordance with each state.
- base::FieldTrialList::CopyFieldTrialStateToFlags(switches::kFieldTrialHandle,
- cmd_line);
+ base::FieldTrialList::CopyFieldTrialStateToFlags(
+ switches::kFieldTrialHandle, switches::kEnableFeatures,
+ switches::kDisableFeatures, cmd_line);
}
void BrowserChildProcessHostImpl::Launch(
« no previous file with comments | « content/app/content_main_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698