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

Side by Side Diff: mandoline/tab/frame_services.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 unified diff | Download patch
« no previous file with comments | « mandoline/tab/frame_services.h ('k') | mandoline/ui/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mandoline/tab/frame_services.h"
6
7 #include "mojo/application/public/cpp/connect.h"
8
9 namespace mandoline {
10
11 FrameServices::FrameServices() {
12 }
13
14 FrameServices::~FrameServices() {
15 }
16
17 void FrameServices::Init(
18 mojo::InterfaceRequest<mojo::ServiceProvider>* services,
19 mojo::ServiceProviderPtr* exposed_services) {
20 *services = GetProxy(&services_).Pass();
21
22 if (exposed_services) {
23 mojo::ServiceProviderPtr exposed_services_ptr;
24 exposed_services_.Bind(GetProxy(&exposed_services_ptr));
25 *exposed_services = exposed_services_ptr.Pass();
26 }
27
28 mojo::ConnectToService(services_.get(), &frame_tree_client_);
29 }
30
31 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/tab/frame_services.h ('k') | mandoline/ui/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698