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

Unified Diff: content/common/mojo/current_thread_loader.cc

Issue 1871223003: Use ShellClientFactory interface to load mojo:profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 | « content/common/mojo/current_thread_loader.h ('k') | content/common/mojo/embedded_application_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/current_thread_loader.cc
diff --git a/content/common/mojo/current_thread_loader.cc b/content/common/mojo/current_thread_loader.cc
deleted file mode 100644
index 561f91b1195cef68375a9d97aed6b1289f9db6c4..0000000000000000000000000000000000000000
--- a/content/common/mojo/current_thread_loader.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2016 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 "content/common/mojo/current_thread_loader.h"
-
-#include "base/memory/ptr_util.h"
-
-namespace content {
-
-CurrentThreadLoader::CurrentThreadLoader(const ApplicationFactory& factory)
- : factory_(factory) {}
-
-CurrentThreadLoader::~CurrentThreadLoader() {}
-
-void CurrentThreadLoader::Load(const std::string& name,
- mojo::shell::mojom::ShellClientRequest request) {
- if (!shell_client_) {
- shell_client_ = factory_.Run();
- factory_ = ApplicationFactory();
- }
-
- connections_.push_back(base::WrapUnique(
- new mojo::ShellConnection(shell_client_.get(), std::move(request))));
-}
-
-} // namespace content
« no previous file with comments | « content/common/mojo/current_thread_loader.h ('k') | content/common/mojo/embedded_application_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698