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

Unified Diff: mandoline/ui/browser/merged_service_provider.cc

Issue 1166123005: Removes ServiceProviders from ViewManager::Embed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use is_headless rather than check for browser. Created 5 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
« no previous file with comments | « mandoline/ui/browser/merged_service_provider.h ('k') | mandoline/ui/browser/view_embedder.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/browser/merged_service_provider.cc
diff --git a/mandoline/ui/browser/merged_service_provider.cc b/mandoline/ui/browser/merged_service_provider.cc
deleted file mode 100644
index fe4a83a58acc3338f6b639d85472c9a5520ffeee..0000000000000000000000000000000000000000
--- a/mandoline/ui/browser/merged_service_provider.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mandoline/ui/browser/merged_service_provider.h"
-
-namespace mandoline {
-
-MergedServiceProvider::MergedServiceProvider(
- mojo::ServiceProviderPtr exposed_services,
- mojo::InterfaceFactory<mojo::NavigatorHost>* factory)
- : exposed_services_(exposed_services.Pass()), factory_(factory) {
-}
-
-MergedServiceProvider::~MergedServiceProvider() {
-}
-
-mojo::ServiceProviderPtr MergedServiceProvider::GetServiceProviderPtr() {
- mojo::ServiceProviderPtr sp;
- binding_.reset(new mojo::Binding<mojo::ServiceProvider>(this, GetProxy(&sp)));
- return sp.Pass();
-}
-
-void MergedServiceProvider::ConnectToService(
- const mojo::String& interface_name,
- mojo::ScopedMessagePipeHandle pipe) {
- if (interface_name == mojo::NavigatorHost::Name_) {
- factory_->Create(nullptr,
- mojo::MakeRequest<mojo::NavigatorHost>(pipe.Pass()));
- } else if (exposed_services_.get()) {
- exposed_services_->ConnectToService(interface_name, pipe.Pass());
- }
-}
-
-} // namespace mandoline
« no previous file with comments | « mandoline/ui/browser/merged_service_provider.h ('k') | mandoline/ui/browser/view_embedder.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698