| 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 "media/audio/audio_manager_base.h" | 5 #include "media/audio/audio_manager_base.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); | 368 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); |
| 369 int buffer_size = 0; | 369 int buffer_size = 0; |
| 370 std::string buffer_size_str(cmd_line->GetSwitchValueASCII( | 370 std::string buffer_size_str(cmd_line->GetSwitchValueASCII( |
| 371 switches::kAudioBufferSize)); | 371 switches::kAudioBufferSize)); |
| 372 if (base::StringToInt(buffer_size_str, &buffer_size) && buffer_size > 0) | 372 if (base::StringToInt(buffer_size_str, &buffer_size) && buffer_size > 0) |
| 373 return buffer_size; | 373 return buffer_size; |
| 374 | 374 |
| 375 return 0; | 375 return 0; |
| 376 } | 376 } |
| 377 | 377 |
| 378 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog( | 378 std::unique_ptr<AudioLog> AudioManagerBase::CreateAudioLog( |
| 379 AudioLogFactory::AudioComponent component) { | 379 AudioLogFactory::AudioComponent component) { |
| 380 return audio_log_factory_->CreateAudioLog(component); | 380 return audio_log_factory_->CreateAudioLog(component); |
| 381 } | 381 } |
| 382 | 382 |
| 383 } // namespace media | 383 } // namespace media |
| OLD | NEW |