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

Side by Side Diff: content/common/mojo/current_thread_loader.cc

Issue 1737933002: mojo leveldb: Get profile and leveldb connected to DOMStorageContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 4 years, 9 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 | « content/common/mojo/current_thread_loader.h ('k') | content/content_browser.gypi » ('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 2016 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 "content/common/mojo/current_thread_loader.h"
6
7 namespace content {
8
9 CurrentThreadLoader::CurrentThreadLoader(const ApplicationFactory& factory)
10 : factory_(factory) {}
11
12 CurrentThreadLoader::~CurrentThreadLoader() {}
13
14 void CurrentThreadLoader::Load(const std::string& name,
15 mojo::shell::mojom::ShellClientRequest request) {
16 if (!shell_client_) {
17 shell_client_ = factory_.Run();
18 factory_ = ApplicationFactory();
19 }
20
21 connections_.push_back(make_scoped_ptr(
22 new mojo::ShellConnection(shell_client_.get(), std::move(request))));
Elliot Glaysher 2016/03/17 19:29:44 This is weird, but appears to be how things are do
23 }
24
25 } // namespace content
OLDNEW
« no previous file with comments | « content/common/mojo/current_thread_loader.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698