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

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

Issue 2132793002: Revert of Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/browser_context.cc ('k') | content/browser/gpu/gpu_process_host.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/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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 GLibLogHandler, 276 GLibLogHandler,
277 NULL); 277 NULL);
278 } 278 }
279 } 279 }
280 #endif // defined(USE_GLIB) 280 #endif // defined(USE_GLIB)
281 281
282 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 282 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
283 void WaitForMojoShellInitialize() { 283 void WaitForMojoShellInitialize() {
284 // TODO(rockot): Remove this. http://crbug.com/594852. 284 // TODO(rockot): Remove this. http://crbug.com/594852.
285 base::RunLoop wait_loop; 285 base::RunLoop wait_loop;
286 MojoShellConnection::GetForProcess()->SetInitializeHandler( 286 MojoShellConnection::GetForProcess()->GetShellConnection()->
287 wait_loop.QuitClosure()); 287 set_initialize_handler(wait_loop.QuitClosure());
288 wait_loop.Run(); 288 wait_loop.Run();
289 } 289 }
290 #endif // defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) 290 #endif // defined(MOJO_SHELL_CLIENT) && defined(USE_AURA)
291 291
292 void OnStoppedStartupTracing(const base::FilePath& trace_file) { 292 void OnStoppedStartupTracing(const base::FilePath& trace_file) {
293 VLOG(0) << "Completed startup tracing to " << trace_file.value(); 293 VLOG(0) << "Completed startup tracing to " << trace_file.value();
294 } 294 }
295 295
296 // Disable optimizations for this block of functions so the compiler doesn't 296 // Disable optimizations for this block of functions so the compiler doesn't
297 // merge them all together. This makes it possible to tell what thread was 297 // merge them all together. This makes it possible to tell what thread was
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 std::move(worker_task_runner), 1517 std::move(worker_task_runner),
1518 MediaInternals::GetInstance()); 1518 MediaInternals::GetInstance());
1519 } 1519 }
1520 CHECK(audio_manager_); 1520 CHECK(audio_manager_);
1521 1521
1522 if (use_hang_monitor) 1522 if (use_hang_monitor)
1523 media::AudioManager::StartHangMonitor(io_thread_->task_runner()); 1523 media::AudioManager::StartHangMonitor(io_thread_->task_runner());
1524 } 1524 }
1525 1525
1526 } // namespace content 1526 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_context.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698