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

Unified Diff: chrome/gpu/chrome_content_gpu_client.cc

Issue 2034933002: Make field trials activated in the GPU process be reflected in browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a unit test for child_process_field_trial_syncer.cc Created 4 years, 6 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: chrome/gpu/chrome_content_gpu_client.cc
diff --git a/chrome/gpu/chrome_content_gpu_client.cc b/chrome/gpu/chrome_content_gpu_client.cc
index 43bd8fa36a90321b887b9316054784c4a5f0600e..9b007750747d7dd721d48c5201a6638c0d34c3d2 100644
--- a/chrome/gpu/chrome_content_gpu_client.cc
+++ b/chrome/gpu/chrome_content_gpu_client.cc
@@ -4,6 +4,7 @@
#include "chrome/gpu/chrome_content_gpu_client.h"
+#include "base/command_line.h"
#include "content/public/common/service_registry.h"
#if defined(OS_CHROMEOS)
@@ -36,3 +37,13 @@ void ChromeContentGpuClient::RegisterMojoServices(
registry->AddService(base::Bind(&CreateGpuArcVideoService));
#endif
}
+
+void ChromeContentGpuClient::Initialize(
+ base::FieldTrialList::Observer* observer) {
+ DCHECK(!field_trial_syncer_);
+ field_trial_syncer_.reset(
+ new chrome_variations::ChildProcessFieldTrialSyncer(observer));
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
+ field_trial_syncer_->InitFieldTrialObserving(command_line);
+}

Powered by Google App Engine
This is Rietveld 408576698