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

Unified Diff: chrome/browser/task_manager/child_process_resource_provider.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
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..88710da02808e1da26eebf3cbdc0e66672b40bc5 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"
@@ -93,14 +93,8 @@ void ChildProcessResource::ConnectResourceReporterOnIOThread(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
content::BrowserChildProcessHost* host =
content::BrowserChildProcessHost::FromID(id);
- if (!host)
- return;
-
- content::ServiceRegistry* registry = host->GetServiceRegistry();
- if (!registry)
- return;
-
- registry->ConnectToRemoteService(std::move(req));
+ if (host)
+ host->GetRemoteInterfaces()->GetInterface(std::move(req));
}
ChildProcessResource::ChildProcessResource(int process_type,

Powered by Google App Engine
This is Rietveld 408576698