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

Unified Diff: chrome/browser/task_management/providers/child_process_task.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_management/providers/child_process_task.cc
diff --git a/chrome/browser/task_management/providers/child_process_task.cc b/chrome/browser/task_management/providers/child_process_task.cc
index 26761f808f3f0a81ca09d86a161fb859e7bd3c49..43845f1d57a20a82de0eaed5848e30776df4ac44 100644
--- a/chrome/browser/task_management/providers/child_process_task.cc
+++ b/chrome/browser/task_management/providers/child_process_task.cc
@@ -19,10 +19,10 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/common/process_type.h"
-#include "content/public/common/service_registry.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_set.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"
@@ -123,11 +123,7 @@ void ConnectResourceReporterOnIOThread(
if (!host)
return;
- content::ServiceRegistry* registry = host->GetServiceRegistry();
- if (!registry)
- return;
-
- registry->ConnectToRemoteService(std::move(resource_reporter));
+ host->GetRemoteInterfaces()->GetInterface(std::move(resource_reporter));
}
// Creates the Mojo service wrapper that will be used to sample the V8 memory

Powered by Google App Engine
This is Rietveld 408576698