Index: chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc |
diff --git a/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc b/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc |
index 899eabdce6547d4b1143e111b0932878530e078c..e05b6b29a3bda20c538cc8838cdc4eccf7ca93f7 100644 |
--- a/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc |
+++ b/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/chromeos/arc/gpu_arc_video_service_host.h" |
#include <string> |
+#include <utility> |
#include "base/location.h" |
#include "base/logging.h" |
@@ -69,8 +70,10 @@ GpuArcVideoServiceHost::~GpuArcVideoServiceHost() { |
void GpuArcVideoServiceHost::OnInstanceReady() { |
DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
- auto* video_instance = arc_bridge_service()->video()->instance(); |
- DCHECK(video_instance); |
+ auto* video_instance = |
+ arc_bridge_service()->video()->GetInstanceForMethod("Init"); |
+ if (!video_instance) |
+ return; |
video_instance->Init(binding_.CreateInterfacePtrAndBind()); |
} |