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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/gpu/chrome_content_gpu_client.h" 5 #include "chrome/gpu/chrome_content_gpu_client.h"
6 6
7 #include "base/command_line.h"
7 #include "content/public/common/service_registry.h" 8 #include "content/public/common/service_registry.h"
8 9
9 #if defined(OS_CHROMEOS) 10 #if defined(OS_CHROMEOS)
10 #include "chrome/gpu/gpu_arc_video_service.h" 11 #include "chrome/gpu/gpu_arc_video_service.h"
11 #endif 12 #endif
12 13
13 #if defined(OS_CHROMEOS) 14 #if defined(OS_CHROMEOS)
14 namespace { 15 namespace {
15 16
16 void CreateGpuArcVideoService( 17 void CreateGpuArcVideoService(
(...skipping 12 matching lines...) Expand all
29 ChromeContentGpuClient::ChromeContentGpuClient() {} 30 ChromeContentGpuClient::ChromeContentGpuClient() {}
30 31
31 ChromeContentGpuClient::~ChromeContentGpuClient() {} 32 ChromeContentGpuClient::~ChromeContentGpuClient() {}
32 33
33 void ChromeContentGpuClient::RegisterMojoServices( 34 void ChromeContentGpuClient::RegisterMojoServices(
34 content::ServiceRegistry* registry) { 35 content::ServiceRegistry* registry) {
35 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
36 registry->AddService(base::Bind(&CreateGpuArcVideoService)); 37 registry->AddService(base::Bind(&CreateGpuArcVideoService));
37 #endif 38 #endif
38 } 39 }
40
41 void ChromeContentGpuClient::Initialize(
42 base::FieldTrialList::Observer* observer) {
43 DCHECK(!field_trial_syncer_);
44 field_trial_syncer_.reset(
45 new chrome_variations::ChildProcessFieldTrialSyncer(observer));
46 const base::CommandLine& command_line =
47 *base::CommandLine::ForCurrentProcess();
48 field_trial_syncer_->InitFieldTrialObserving(command_line);
49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698