| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/memory_pressure_monitor.h" | 10 #include "base/memory/memory_pressure_monitor.h" |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 hi_res_timer_manager_.reset(new base::HighResolutionTimerManager); | 539 hi_res_timer_manager_.reset(new base::HighResolutionTimerManager); |
| 540 } | 540 } |
| 541 { | 541 { |
| 542 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier"); | 542 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier"); |
| 543 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); | 543 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); |
| 544 } | 544 } |
| 545 | 545 |
| 546 #if !defined(OS_IOS) | 546 #if !defined(OS_IOS) |
| 547 { | 547 { |
| 548 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures"); | 548 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures"); |
| 549 media::InitializeMediaLibrary(); | 549 media::InitializeCPUSpecificMediaFeatures(); |
| 550 } | 550 } |
| 551 { | 551 { |
| 552 TRACE_EVENT0("startup", | 552 TRACE_EVENT0("startup", |
| 553 "BrowserMainLoop::Subsystem:ContentWebUIController"); | 553 "BrowserMainLoop::Subsystem:ContentWebUIController"); |
| 554 WebUIControllerFactory::RegisterFactory( | 554 WebUIControllerFactory::RegisterFactory( |
| 555 ContentWebUIControllerFactory::GetInstance()); | 555 ContentWebUIControllerFactory::GetInstance()); |
| 556 } | 556 } |
| 557 | 557 |
| 558 { | 558 { |
| 559 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:OnlineStateObserver"); | 559 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:OnlineStateObserver"); |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 DCHECK(is_tracing_startup_); | 1362 DCHECK(is_tracing_startup_); |
| 1363 | 1363 |
| 1364 is_tracing_startup_ = false; | 1364 is_tracing_startup_ = false; |
| 1365 TracingController::GetInstance()->DisableRecording( | 1365 TracingController::GetInstance()->DisableRecording( |
| 1366 TracingController::CreateFileSink( | 1366 TracingController::CreateFileSink( |
| 1367 startup_trace_file_, | 1367 startup_trace_file_, |
| 1368 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1368 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
| 1369 } | 1369 } |
| 1370 | 1370 |
| 1371 } // namespace content | 1371 } // namespace content |
| OLD | NEW |