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

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: git cl format 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 1be4217f406cf3ca08089d830d732430c3e95b27..ae6a1ca9eb8938c84e2acabc77d7d10c55325168 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"
@@ -31,13 +30,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());
- new HTMLDocumentView(response.Pass(), remote.Pass(), exported_services,
- shell_);
+ InterfaceRequest<ServiceProvider> service_provider_request) OVERRIDE {
+ new HTMLDocumentView(
+ response.Pass(), service_provider_request.Pass(), shell_);
}
Shell* shell_;

Powered by Google App Engine
This is Rietveld 408576698