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/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 hi_res_timer_manager_.reset(new base::HighResolutionTimerManager); | 541 hi_res_timer_manager_.reset(new base::HighResolutionTimerManager); |
542 } | 542 } |
543 { | 543 { |
544 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier"); | 544 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:NetworkChangeNotifier"); |
545 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); | 545 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); |
546 } | 546 } |
547 | 547 |
548 #if !defined(OS_IOS) | 548 #if !defined(OS_IOS) |
549 { | 549 { |
550 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures"); | 550 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:MediaFeatures"); |
551 media::InitializeCPUSpecificMediaFeatures(); | 551 media::InitializeMediaLibrary(); |
552 } | 552 } |
553 { | 553 { |
554 TRACE_EVENT0("startup", | 554 TRACE_EVENT0("startup", |
555 "BrowserMainLoop::Subsystem:ContentWebUIController"); | 555 "BrowserMainLoop::Subsystem:ContentWebUIController"); |
556 WebUIControllerFactory::RegisterFactory( | 556 WebUIControllerFactory::RegisterFactory( |
557 ContentWebUIControllerFactory::GetInstance()); | 557 ContentWebUIControllerFactory::GetInstance()); |
558 } | 558 } |
559 | 559 |
560 { | 560 { |
561 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:OnlineStateObserver"); | 561 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:OnlineStateObserver"); |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1368 DCHECK(is_tracing_startup_); | 1368 DCHECK(is_tracing_startup_); |
1369 | 1369 |
1370 is_tracing_startup_ = false; | 1370 is_tracing_startup_ = false; |
1371 TracingController::GetInstance()->DisableRecording( | 1371 TracingController::GetInstance()->DisableRecording( |
1372 TracingController::CreateFileSink( | 1372 TracingController::CreateFileSink( |
1373 startup_trace_file_, | 1373 startup_trace_file_, |
1374 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1374 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
1375 } | 1375 } |
1376 | 1376 |
1377 } // namespace content | 1377 } // namespace content |
OLD | NEW |