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

Unified Diff: content/common/child_process_host_impl.h

Issue 1928863002: Enable FeatureList for the GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zygote process! Created 4 years, 8 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/common/child_process_host_impl.h
diff --git a/content/common/child_process_host_impl.h b/content/common/child_process_host_impl.h
index 18875c94e67028db164d96d82c55bb1e7d74dfc8..dcb678107e71883a11589310c5e666e315b771b5 100644
--- a/content/common/child_process_host_impl.h
+++ b/content/common/child_process_host_impl.h
@@ -23,6 +23,7 @@
#include "ui/gfx/gpu_memory_buffer.h"
namespace base {
+class CommandLine;
class FilePath;
}
@@ -61,6 +62,11 @@ class CONTENT_EXPORT ChildProcessHostImpl : public ChildProcessHost,
// This will never return ChildProcessHost::kInvalidUniqueID.
static int GenerateChildProcessUniqueId();
+ // Copies kEnableFeatures and kDisableFeatures to the command line. Generates
+ // them from the FeatureList override state, to take into account overrides
+ // from FieldTrials.
+ static void CopyEnableDisableFeatureFlags(base::CommandLine* cmd_line);
+
// Derives a tracing process id from a child process id. Child process ids
// cannot be used directly in child process for tracing due to security
// reasons (see: discussion in crrev.com/1173263004). This method is meant to

Powered by Google App Engine
This is Rietveld 408576698