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

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

Issue 987693005: Get rid of ChannelInit::SetSingleProcessIOTaskRunner() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/mojo/channel_init.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/channel_init.cc
diff --git a/content/common/mojo/channel_init.cc b/content/common/mojo/channel_init.cc
index 453e06a4894779b4fbd0e873e4e5cea7d11025a7..c2d4bf25cb918361e46590303f1b5cb8be0e40c6 100644
--- a/content/common/mojo/channel_init.cc
+++ b/content/common/mojo/channel_init.cc
@@ -12,13 +12,6 @@
namespace content {
-namespace {
-
-base::LazyInstance<scoped_refptr<base::TaskRunner>>
- g_single_process_task_runner = LAZY_INSTANCE_INITIALIZER;
-
-} // namespace
-
ChannelInit::ChannelInit() : channel_info_(nullptr), weak_factory_(this) {}
ChannelInit::~ChannelInit() {
@@ -57,17 +50,6 @@ void ChannelInit::ShutdownOnIOThread() {
}
// static
-scoped_refptr<base::TaskRunner> ChannelInit::GetSingleProcessIOTaskRunner() {
- return g_single_process_task_runner.Get();
-}
-
-// static
-void ChannelInit::SetSingleProcessIOTaskRunner(
- scoped_refptr<base::TaskRunner> io_task_runner) {
- g_single_process_task_runner.Get() = io_task_runner;
-}
-
-// static
void ChannelInit::OnCreatedChannel(
base::WeakPtr<ChannelInit> self,
scoped_ptr<IPC::ScopedIPCSupport> ipc_support,
« no previous file with comments | « content/common/mojo/channel_init.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698