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

Side by Side Diff: content/utility/utility_thread_impl.cc

Issue 2389193004: Always use ChannelMojo for content child processes. (Closed)
Patch Set: Created 4 years, 2 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/renderer/render_thread_impl_browsertest.cc ('k') | content/zygote/zygote_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/utility/utility_thread_impl.h" 5 #include "content/utility/utility_thread_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 29 matching lines...) Expand all
40 } // namespace 40 } // namespace
41 41
42 UtilityThreadImpl::UtilityThreadImpl() 42 UtilityThreadImpl::UtilityThreadImpl()
43 : ChildThreadImpl(ChildThreadImpl::Options::Builder().Build()) { 43 : ChildThreadImpl(ChildThreadImpl::Options::Builder().Build()) {
44 Init(); 44 Init();
45 } 45 }
46 46
47 UtilityThreadImpl::UtilityThreadImpl(const InProcessChildThreadParams& params) 47 UtilityThreadImpl::UtilityThreadImpl(const InProcessChildThreadParams& params)
48 : ChildThreadImpl(ChildThreadImpl::Options::Builder() 48 : ChildThreadImpl(ChildThreadImpl::Options::Builder()
49 .InBrowserProcess(params) 49 .InBrowserProcess(params)
50 .UseMojoChannel(true)
51 .Build()) { 50 .Build()) {
52 Init(); 51 Init();
53 } 52 }
54 53
55 UtilityThreadImpl::~UtilityThreadImpl() { 54 UtilityThreadImpl::~UtilityThreadImpl() {
56 } 55 }
57 56
58 void UtilityThreadImpl::Shutdown() { 57 void UtilityThreadImpl::Shutdown() {
59 ChildThreadImpl::Shutdown(); 58 ChildThreadImpl::Shutdown();
60 } 59 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 122 }
124 123
125 void UtilityThreadImpl::BindServiceFactoryRequest( 124 void UtilityThreadImpl::BindServiceFactoryRequest(
126 shell::mojom::ServiceFactoryRequest request) { 125 shell::mojom::ServiceFactoryRequest request) {
127 DCHECK(service_factory_); 126 DCHECK(service_factory_);
128 service_factory_bindings_.AddBinding(service_factory_.get(), 127 service_factory_bindings_.AddBinding(service_factory_.get(),
129 std::move(request)); 128 std::move(request));
130 } 129 }
131 130
132 } // namespace content 131 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl_browsertest.cc ('k') | content/zygote/zygote_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698