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

Unified Diff: components/dom_distiller/content/renderer/distillability_agent.cc

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
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: components/dom_distiller/content/renderer/distillability_agent.cc
diff --git a/components/dom_distiller/content/renderer/distillability_agent.cc b/components/dom_distiller/content/renderer/distillability_agent.cc
index eb0e6f3b48aaff6177575485b9918d3bf136ffc5..0534a99cc30b556e6c3fb07fb26646bce12c783e 100644
--- a/components/dom_distiller/content/renderer/distillability_agent.cc
+++ b/components/dom_distiller/content/renderer/distillability_agent.cc
@@ -11,9 +11,8 @@
#include "components/dom_distiller/core/experiments.h"
#include "components/dom_distiller/core/page_features.h"
#include "components/dom_distiller/core/url_utils.h"
-#include "content/public/common/service_registry.h"
#include "content/public/renderer/render_frame.h"
-
+#include "services/shell/public/cpp/interface_provider.h"
#include "third_party/WebKit/public/platform/WebDistillability.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebElement.h"
@@ -201,8 +200,8 @@ void DistillabilityAgent::DidMeaningfulLayout(
bool is_last = IsLast(is_loaded);
// Connect to Mojo service on browser to notify page distillability.
mojom::DistillabilityServicePtr distillability_service;
- render_frame()->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&distillability_service));
+ render_frame()->GetRemoteInterfaces()->GetInterface(
+ &distillability_service);
DCHECK(distillability_service);
distillability_service->NotifyIsDistillable(
IsDistillablePage(doc, is_last), is_last);

Powered by Google App Engine
This is Rietveld 408576698