OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |