| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |