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

Side by Side Diff: chrome/gpu/chrome_content_gpu_client.cc

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « chrome/gpu/chrome_content_gpu_client.h ('k') | chrome/utility/chrome_content_utility_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/command_line.h"
8 #include "services/shell/public/cpp/interface_registry.h" 8 #include "services/shell/public/cpp/interface_registry.h"
9 9
10 #if defined(OS_CHROMEOS) 10 #if defined(OS_CHROMEOS)
(...skipping 13 matching lines...) Expand all
24 service->Connect(std::move(request)); 24 service->Connect(std::move(request));
25 } 25 }
26 26
27 } // namespace 27 } // namespace
28 #endif 28 #endif
29 29
30 ChromeContentGpuClient::ChromeContentGpuClient() {} 30 ChromeContentGpuClient::ChromeContentGpuClient() {}
31 31
32 ChromeContentGpuClient::~ChromeContentGpuClient() {} 32 ChromeContentGpuClient::~ChromeContentGpuClient() {}
33 33
34 void ChromeContentGpuClient::RegisterMojoInterfaces( 34 void ChromeContentGpuClient::ExposeInterfacesToBrowser(
35 shell::InterfaceRegistry* registry) { 35 shell::InterfaceRegistry* registry) {
36 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
37 registry->AddInterface(base::Bind(&CreateGpuArcVideoService)); 37 registry->AddInterface(base::Bind(&CreateGpuArcVideoService));
38 #endif 38 #endif
39 } 39 }
40 40
41 void ChromeContentGpuClient::Initialize( 41 void ChromeContentGpuClient::Initialize(
42 base::FieldTrialList::Observer* observer) { 42 base::FieldTrialList::Observer* observer) {
43 DCHECK(!field_trial_syncer_); 43 DCHECK(!field_trial_syncer_);
44 field_trial_syncer_.reset( 44 field_trial_syncer_.reset(
45 new chrome_variations::ChildProcessFieldTrialSyncer(observer)); 45 new chrome_variations::ChildProcessFieldTrialSyncer(observer));
46 const base::CommandLine& command_line = 46 const base::CommandLine& command_line =
47 *base::CommandLine::ForCurrentProcess(); 47 *base::CommandLine::ForCurrentProcess();
48 field_trial_syncer_->InitFieldTrialObserving(command_line); 48 field_trial_syncer_->InitFieldTrialObserving(command_line);
49 } 49 }
OLDNEW
« no previous file with comments | « chrome/gpu/chrome_content_gpu_client.h ('k') | chrome/utility/chrome_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698