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

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

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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/renderer/chrome_render_frame_observer.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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 metrics::mojom::CallStackProfileCollectorPtr browser_interface; 80 metrics::mojom::CallStackProfileCollectorPtr browser_interface;
81 content::ChildThread::Get()->GetConnector()->BindInterface( 81 content::ChildThread::Get()->GetConnector()->BindInterface(
82 content::mojom::kBrowserServiceName, &browser_interface); 82 content::mojom::kBrowserServiceName, &browser_interface);
83 g_call_stack_profile_collector.Get().SetParentProfileCollector( 83 g_call_stack_profile_collector.Get().SetParentProfileCollector(
84 std::move(browser_interface)); 84 std::move(browser_interface));
85 } 85 }
86 86
87 #if defined(OS_CHROMEOS) 87 #if defined(OS_CHROMEOS)
88 88
89 void ChromeContentGpuClient::CreateArcVideoAcceleratorService( 89 void ChromeContentGpuClient::CreateArcVideoAcceleratorService(
90 const service_manager::BindSourceInfo& source_info,
90 ::arc::mojom::VideoAcceleratorServiceRequest request) { 91 ::arc::mojom::VideoAcceleratorServiceRequest request) {
91 mojo::MakeStrongBinding( 92 mojo::MakeStrongBinding(
92 base::MakeUnique<chromeos::arc::GpuArcVideoService>(gpu_preferences_), 93 base::MakeUnique<chromeos::arc::GpuArcVideoService>(gpu_preferences_),
93 std::move(request)); 94 std::move(request));
94 } 95 }
95 96
96 #endif 97 #endif
OLDNEW
« no previous file with comments | « chrome/gpu/chrome_content_gpu_client.h ('k') | chrome/renderer/chrome_render_frame_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698