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

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

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 6 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
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/image_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 940ecf624f099aac5a5c6d1a7b56ea37e18592fb..475616efaf58de8d0bb872740b54fd91a726e793 100644
--- a/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
+++ b/chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc
@@ -11,23 +11,21 @@
#include "components/arc/common/video_accelerator.mojom.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/gpu_service_registry.h"
-#include "content/public/common/service_registry.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
+#include "services/shell/public/cpp/interface_provider.h"
namespace {
void ConnectToVideoAcceleratorServiceOnIOThread(
arc::mojom::VideoAcceleratorServiceClientRequest request) {
- content::ServiceRegistry* registry = content::GetGpuServiceRegistry();
-
// Note |request| is not a ServiceRequest. It is a ClientRequest but doesn't
// request for a Client. Instead, it requests for a Service while specified
// the client. It works this odd way because the interfaces were modeled as
// arc's "Host notifies to Instance::Init", not mojo's typical "Client
// registers to Service".
// TODO(kcwu): revise the interface.
- registry->ConnectToRemoteService(std::move(request));
+ content::GetGpuInterfaceProvider()->GetInterface(std::move(request));
}
} // namespace
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698