| 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();
|
|
|
|
|