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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2027093002: mus: Initialize WindowManagerConnection in chrome instead of in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 | « content/browser/DEPS ('k') | services/navigation/content_client/BUILD.gn » ('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/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 #include "ui/base/x/x11_util_internal.h" // nogncheck 179 #include "ui/base/x/x11_util_internal.h" // nogncheck
180 #include "ui/gfx/x/x11_connection.h" // nogncheck 180 #include "ui/gfx/x/x11_connection.h" // nogncheck
181 #include "ui/gfx/x/x11_switches.h" // nogncheck 181 #include "ui/gfx/x/x11_switches.h" // nogncheck
182 #include "ui/gfx/x/x11_types.h" // nogncheck 182 #include "ui/gfx/x/x11_types.h" // nogncheck
183 #endif 183 #endif
184 184
185 #if defined(USE_NSS_CERTS) 185 #if defined(USE_NSS_CERTS)
186 #include "crypto/nss_util.h" 186 #include "crypto/nss_util.h"
187 #endif 187 #endif
188 188
189 #if defined(MOJO_SHELL_CLIENT)
190 #include "services/shell/public/cpp/connector.h"
191 #include "ui/views/mus/window_manager_connection.h"
192 #endif
193
194 #if defined(ENABLE_VULKAN) 189 #if defined(ENABLE_VULKAN)
195 #include "gpu/vulkan/vulkan_implementation.h" 190 #include "gpu/vulkan/vulkan_implementation.h"
196 #endif 191 #endif
197 192
198 // One of the linux specific headers defines this as a macro. 193 // One of the linux specific headers defines this as a macro.
199 #ifdef DestroyAll 194 #ifdef DestroyAll
200 #undef DestroyAll 195 #undef DestroyAll
201 #endif 196 #endif
202 197
203 namespace content { 198 namespace content {
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 if (IsRunningInMojoShell()) { 1199 if (IsRunningInMojoShell()) {
1205 if (!MojoShellConnectionImpl::CreateUsingFactory()) { 1200 if (!MojoShellConnectionImpl::CreateUsingFactory()) {
1206 mojo::edk::SetParentPipeHandleFromCommandLine(); 1201 mojo::edk::SetParentPipeHandleFromCommandLine();
1207 MojoShellConnectionImpl::Create(); 1202 MojoShellConnectionImpl::Create();
1208 MojoShellConnectionImpl::Get()->BindToRequestFromCommandLine(); 1203 MojoShellConnectionImpl::Get()->BindToRequestFromCommandLine();
1209 } 1204 }
1210 } 1205 }
1211 mojo_shell_context_.reset(new MojoShellContext); 1206 mojo_shell_context_.reset(new MojoShellContext);
1212 if (IsRunningInMojoShell()) { 1207 if (IsRunningInMojoShell()) {
1213 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 1208 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
1209 // TODO(rockot): Remove the blocking wait for init.
1210 // http://crbug.com/594852.
1214 MojoShellConnection* mojo_shell_connection = MojoShellConnection::Get(); 1211 MojoShellConnection* mojo_shell_connection = MojoShellConnection::Get();
1215 if (mojo_shell_connection) { 1212 if (mojo_shell_connection)
1216 // TODO(rockot): Remove the blocking wait for init.
1217 // http://crbug.com/594852.
1218 WaitForMojoShellInitialize(); 1213 WaitForMojoShellInitialize();
1219 views::WindowManagerConnection::Create(
1220 mojo_shell_connection->GetConnector(),
1221 mojo_shell_connection->GetIdentity());
1222 }
1223 #endif 1214 #endif
1224 } 1215 }
1225 1216
1226 #if defined(OS_MACOSX) 1217 #if defined(OS_MACOSX)
1227 mojo::edk::SetMachPortProvider(MachBroker::GetInstance()); 1218 mojo::edk::SetMachPortProvider(MachBroker::GetInstance());
1228 #endif // defined(OS_MACOSX) 1219 #endif // defined(OS_MACOSX)
1229 1220
1230 indexed_db_thread_.reset(new base::Thread("IndexedDB")); 1221 indexed_db_thread_.reset(new base::Thread("IndexedDB"));
1231 indexed_db_thread_->Start(); 1222 indexed_db_thread_->Start();
1232 1223
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 std::move(worker_task_runner), 1539 std::move(worker_task_runner),
1549 MediaInternals::GetInstance()); 1540 MediaInternals::GetInstance());
1550 } 1541 }
1551 CHECK(audio_manager_); 1542 CHECK(audio_manager_);
1552 1543
1553 if (use_hang_monitor) 1544 if (use_hang_monitor)
1554 media::AudioManager::StartHangMonitor(io_thread_->task_runner()); 1545 media::AudioManager::StartHangMonitor(io_thread_->task_runner());
1555 } 1546 }
1556 1547
1557 } // namespace content 1548 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | services/navigation/content_client/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698