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

Side by Side Diff: mandoline/tab/frame_connection.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_connection.h ('k') | mandoline/tab/frame_services.h » ('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_connection.h"
6
7 #include "mojo/application/public/cpp/application_connection.h"
8 #include "mojo/application/public/cpp/application_impl.h"
9
10 namespace mandoline {
11
12 FrameConnection::FrameConnection() : application_connection_(nullptr) {
13 }
14
15 FrameConnection::~FrameConnection() {
16 }
17
18 void FrameConnection::Init(mojo::ApplicationImpl* app,
19 mojo::URLRequestPtr request,
20 mojo::ViewManagerClientPtr* view_manage_client) {
21 DCHECK(!application_connection_);
22 application_connection_ = app->ConnectToApplication(request.Pass());
23 application_connection_->ConnectToService(view_manage_client);
24 application_connection_->ConnectToService(&frame_tree_client_);
25 }
26
27 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/tab/frame_connection.h ('k') | mandoline/tab/frame_services.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698