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

Side by Side Diff: components/arc/video/arc_video_bridge.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 11 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 "components/arc/video/arc_video_bridge.h" 5 #include "components/arc/video/arc_video_bridge.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 namespace arc { 9 namespace arc {
10 10
(...skipping 14 matching lines...) Expand all
25 switch (state) { 25 switch (state) {
26 case arc::ArcBridgeService::State::STOPPING: 26 case arc::ArcBridgeService::State::STOPPING:
27 video_host_delegate_->OnStopping(); 27 video_host_delegate_->OnStopping();
28 break; 28 break;
29 default: 29 default:
30 break; 30 break;
31 } 31 }
32 } 32 }
33 33
34 void ArcVideoBridge::OnVideoInstanceReady() { 34 void ArcVideoBridge::OnVideoInstanceReady() {
35 arc::VideoHostPtr host; 35 arc_bridge_service()->video_instance()->Init(
36 binding_.Bind(mojo::GetProxy(&host)); 36 binding_.CreateInterfacePtrAndBind());
37 arc_bridge_service()->video_instance()->Init(std::move(host));
38 } 37 }
39 38
40 } // namespace arc 39 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/power/arc_power_bridge.cc ('k') | components/devtools_service/devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698