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

Unified Diff: chrome/browser/task_manager/child_process_resource_provider.cc

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: chrome/browser/task_manager/child_process_resource_provider.cc
diff --git a/chrome/browser/task_manager/child_process_resource_provider.cc b/chrome/browser/task_manager/child_process_resource_provider.cc
index b9d28890f6360d62845cf0f0c426aaf983c9767b..265876e87765c764f9ce8da78f9a9715489a4f01 100644
--- a/chrome/browser/task_manager/child_process_resource_provider.cc
+++ b/chrome/browser/task_manager/child_process_resource_provider.cc
@@ -21,8 +21,8 @@
#include "content/public/browser/browser_child_process_host_iterator.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
-#include "content/public/common/service_registry.h"
#include "grit/theme_resources.h"
+#include "services/shell/public/cpp/interface_provider.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image_skia.h"
@@ -96,11 +96,7 @@ void ChildProcessResource::ConnectResourceReporterOnIOThread(
if (!host)
return;
- content::ServiceRegistry* registry = host->GetServiceRegistry();
- if (!registry)
- return;
-
- registry->ConnectToRemoteService(std::move(req));
+ host->GetRemoteInterfaces()->GetInterface(std::move(req));
}
ChildProcessResource::ChildProcessResource(int process_type,

Powered by Google App Engine
This is Rietveld 408576698