| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "init_webrtc.h" | 5 #include "init_webrtc.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } // namespace webrtc | 70 } // namespace webrtc |
| 71 | 71 |
| 72 bool InitializeWebRtcModule() { | 72 bool InitializeWebRtcModule() { |
| 73 // Workaround for crbug.com/176522 | 73 // Workaround for crbug.com/176522 |
| 74 // On Linux, we can't fetch the number of cores after the sandbox has been | 74 // On Linux, we can't fetch the number of cores after the sandbox has been |
| 75 // initialized, so we call DetectNumberOfCores() here, to cache the value. | 75 // initialized, so we call DetectNumberOfCores() here, to cache the value. |
| 76 webrtc::CpuInfo::DetectNumberOfCores(); | 76 webrtc::CpuInfo::DetectNumberOfCores(); |
| 77 webrtc::SetupEventTracer(&GetCategoryGroupEnabled, &AddTraceEvent); | 77 webrtc::SetupEventTracer(&GetCategoryGroupEnabled, &AddTraceEvent); |
| 78 return true; | 78 return true; |
| 79 } | 79 } |
| OLD | NEW |