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