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

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

Issue 1899323002: Add mash shelf application id support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address simpler comments. 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 unified diff | Download patch
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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO) 1164 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO)
1165 ->task_runner())); 1165 ->task_runner()));
1166 1166
1167 if (IsRunningInMojoShell()) { 1167 if (IsRunningInMojoShell()) {
1168 if (!MojoShellConnectionImpl::CreateUsingFactory()) { 1168 if (!MojoShellConnectionImpl::CreateUsingFactory()) {
1169 mojo::edk::SetParentPipeHandleFromCommandLine(); 1169 mojo::edk::SetParentPipeHandleFromCommandLine();
1170 MojoShellConnectionImpl::Create(); 1170 MojoShellConnectionImpl::Create();
1171 MojoShellConnectionImpl::Get()->BindToRequestFromCommandLine(); 1171 MojoShellConnectionImpl::Get()->BindToRequestFromCommandLine();
1172 } 1172 }
1173 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 1173 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
1174 if (MojoShellConnection::Get()) { 1174 MojoShellConnection* mojo_shell_connection = MojoShellConnection::Get();
1175 if (mojo_shell_connection) {
1175 views::WindowManagerConnection::Create( 1176 views::WindowManagerConnection::Create(
1176 MojoShellConnection::Get()->GetConnector()); 1177 mojo_shell_connection->GetConnector(),
1178 mojo_shell_connection->GetIdentity());
1177 } 1179 }
1178 #endif 1180 #endif
1179 } 1181 }
1180 1182
1181 mojo_shell_context_.reset(new MojoShellContext); 1183 mojo_shell_context_.reset(new MojoShellContext);
1182 #if defined(OS_MACOSX) 1184 #if defined(OS_MACOSX)
1183 mojo::edk::SetMachPortProvider(MachBroker::GetInstance()); 1185 mojo::edk::SetMachPortProvider(MachBroker::GetInstance());
1184 #endif // defined(OS_MACOSX) 1186 #endif // defined(OS_MACOSX)
1185 1187
1186 indexed_db_thread_.reset(new base::Thread("IndexedDB")); 1188 indexed_db_thread_.reset(new base::Thread("IndexedDB"));
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 audio_task_runner = audio_thread_->task_runner(); 1493 audio_task_runner = audio_thread_->task_runner();
1492 worker_task_runner = audio_thread_->task_runner(); 1494 worker_task_runner = audio_thread_->task_runner();
1493 monitor_task_runner = io_thread_->task_runner(); 1495 monitor_task_runner = io_thread_->task_runner();
1494 #endif // defined(OS_MACOSX) 1496 #endif // defined(OS_MACOSX)
1495 audio_manager_ = media::AudioManager::Create( 1497 audio_manager_ = media::AudioManager::Create(
1496 std::move(audio_task_runner), std::move(worker_task_runner), 1498 std::move(audio_task_runner), std::move(worker_task_runner),
1497 std::move(monitor_task_runner), MediaInternals::GetInstance()); 1499 std::move(monitor_task_runner), MediaInternals::GetInstance());
1498 } 1500 }
1499 1501
1500 } // namespace content 1502 } // namespace content
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_manager.mojom ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698