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

Unified Diff: mojo/services/html_viewer/html_viewer.cc

Issue 537843002: Expose NavigatorHost via Embed() rather than globally. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@viewman3
Patch Set: darments Created 6 years, 3 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: mojo/services/html_viewer/html_viewer.cc
diff --git a/mojo/services/html_viewer/html_viewer.cc b/mojo/services/html_viewer/html_viewer.cc
index 279edc214a4983416a28dbace70ec44177c87171..e8b5c76314bbf01afa43a1b6b037f18a495b866b 100644
--- a/mojo/services/html_viewer/html_viewer.cc
+++ b/mojo/services/html_viewer/html_viewer.cc
@@ -9,7 +9,6 @@
#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/application/application_runner_chromium.h"
#include "mojo/public/cpp/application/interface_factory_impl.h"
-#include "mojo/public/cpp/application/service_provider_impl.h"
#include "mojo/services/html_viewer/blink_platform_impl.h"
#include "mojo/services/html_viewer/html_document_view.h"
#include "mojo/services/public/interfaces/content_handler/content_handler.mojom.h"
@@ -29,13 +28,9 @@ class ContentHandlerImpl : public InterfaceImpl<ContentHandler> {
virtual void OnConnect(
const mojo::String& url,
URLResponsePtr response,
- InterfaceRequest<ServiceProvider> service_provider) OVERRIDE {
- ServiceProviderImpl* exported_services = new ServiceProviderImpl();
- BindToRequest(exported_services, &service_provider);
- scoped_ptr<ServiceProvider> remote(
- exported_services->CreateRemoteServiceProvider());
+ InterfaceRequest<ServiceProvider> service_provider_request) OVERRIDE {
new HTMLDocumentView(
- response.Pass(), remote.Pass(), exported_services, shell_);
+ response.Pass(), service_provider_request.Pass(), shell_);
}
Shell* shell_;
« no previous file with comments | « mojo/services/html_viewer/html_document_view.cc ('k') | mojo/services/public/interfaces/navigation/navigation.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698