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

Unified Diff: content/gpu/gpu_child_thread.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: IWYU 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
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/public/gpu/content_gpu_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index cc97e948cf2febe7cadb8da5c8e0296378be4668..9d0e7ccc7113cb6c238a96102dc2699104f4b922 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -239,8 +239,15 @@ void GpuChildThread::Init(const base::Time& process_start_time) {
service_registry()->AddService(base::Bind(
&GpuChildThread::BindProcessControlRequest, base::Unretained(this)));
- if (GetContentClient()->gpu()) // NULL in tests.
+ if (GetContentClient()->gpu()) { // NULL in tests.
+ GetContentClient()->gpu()->Initialize(this);
GetContentClient()->gpu()->RegisterMojoServices(service_registry());
+ }
+}
+
+void GpuChildThread::OnFieldTrialGroupFinalized(const std::string& trial_name,
+ const std::string& group_name) {
+ Send(new GpuHostMsg_FieldTrialActivated(trial_name));
}
bool GpuChildThread::Send(IPC::Message* msg) {
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/public/gpu/content_gpu_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698