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

Unified Diff: components/dom_distiller/content/browser/dom_distiller_viewer_source.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/browser/dom_distiller_viewer_source.cc
diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
index f483f297394c3592a90d3805dd1876d944c4b6a0..8ae7f8ca262e909edf196c878d8ddf4ae86d0fee 100644
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
@@ -36,11 +36,12 @@
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
-#include "content/public/common/service_registry.h"
#include "grit/components_strings.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "net/base/url_util.h"
#include "net/url_request/url_request.h"
+#include "services/shell/public/cpp/interface_provider.h"
+#include "services/shell/public/cpp/interface_registry.h"
#include "ui/base/l10n/l10n_util.h"
namespace dom_distiller {
@@ -244,15 +245,15 @@ void DomDistillerViewerSource::StartDataRequest(
// Add mojo service for JavaScript functionality. This is the receiving end
// of this particular service.
- render_frame_host->GetServiceRegistry()->AddService(
+ render_frame_host->GetInterfaceRegistry()->AddInterface(
base::Bind(&CreateDistillerJavaScriptService,
render_frame_host,
distiller_ui_handle_.get()));
// Tell the renderer that this is currently a distilled page.
mojom::DistillerPageNotifierServicePtr page_notifier_service;
- render_frame_host->GetServiceRegistry()->ConnectToRemoteService(
- mojo::GetProxy(&page_notifier_service));
+ render_frame_host->GetRemoteInterfaces()->GetInterface(
+ &page_notifier_service);
DCHECK(page_notifier_service);
page_notifier_service->NotifyIsDistillerPage();
« no previous file with comments | « components/dom_distiller/content/browser/distillability_driver.cc ('k') | components/dom_distiller/content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698