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

Unified Diff: chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc

Issue 2357053002: Always use arc::InstanceHolder<T>::GetInstanceForMethod (Closed)
Patch Set: rebased to catch up tot Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
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..c250d60dcf418d74f5eb47e275ef615cb49a5016 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,9 @@ 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");
+ CHECK(video_instance);
video_instance->Init(binding_.CreateInterfacePtrAndBind());
}

Powered by Google App Engine
This is Rietveld 408576698