| Index: content/renderer/presentation/presentation_dispatcher.cc
|
| diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
|
| index f92f371d0758213accf02249e03006348e1c16a8..e9360099ed0a640a7a16f30f4f2eec8e299407c5 100644
|
| --- a/content/renderer/presentation/presentation_dispatcher.cc
|
| +++ b/content/renderer/presentation/presentation_dispatcher.cc
|
| @@ -8,12 +8,13 @@
|
| #include <utility>
|
| #include <vector>
|
|
|
| +#include "base/bind.h"
|
| #include "base/logging.h"
|
| #include "base/memory/ptr_util.h"
|
| #include "content/public/common/presentation_constants.h"
|
| -#include "content/public/common/service_registry.h"
|
| #include "content/public/renderer/render_frame.h"
|
| #include "content/renderer/presentation/presentation_connection_client.h"
|
| +#include "services/shell/public/cpp/interface_provider.h"
|
| #include "third_party/WebKit/public/platform/WebString.h"
|
| #include "third_party/WebKit/public/platform/WebURL.h"
|
| #include "third_party/WebKit/public/platform/modules/presentation/WebPresentationAvailabilityObserver.h"
|
| @@ -454,8 +455,7 @@ void PresentationDispatcher::ConnectToPresentationServiceIfNeeded() {
|
| if (presentation_service_.get())
|
| return;
|
|
|
| - render_frame()->GetServiceRegistry()->ConnectToRemoteService(
|
| - mojo::GetProxy(&presentation_service_));
|
| + render_frame()->GetRemoteInterfaces()->GetInterface(&presentation_service_);
|
| presentation_service_->SetClient(binding_.CreateInterfacePtrAndBind());
|
| }
|
|
|
|
|