Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: media/audio/audio_manager_base.cc

Issue 819203002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/audio/alsa/audio_manager_alsa.cc ('k') | media/audio/fake_audio_input_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 std::string AudioManagerBase::GetAssociatedOutputDeviceID( 378 std::string AudioManagerBase::GetAssociatedOutputDeviceID(
379 const std::string& input_device_id) { 379 const std::string& input_device_id) {
380 return ""; 380 return "";
381 } 381 }
382 382
383 std::string AudioManagerBase::GetDefaultOutputDeviceID() { 383 std::string AudioManagerBase::GetDefaultOutputDeviceID() {
384 return ""; 384 return "";
385 } 385 }
386 386
387 int AudioManagerBase::GetUserBufferSize() { 387 int AudioManagerBase::GetUserBufferSize() {
388 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 388 const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
389 int buffer_size = 0; 389 int buffer_size = 0;
390 std::string buffer_size_str(cmd_line->GetSwitchValueASCII( 390 std::string buffer_size_str(cmd_line->GetSwitchValueASCII(
391 switches::kAudioBufferSize)); 391 switches::kAudioBufferSize));
392 if (base::StringToInt(buffer_size_str, &buffer_size) && buffer_size > 0) 392 if (base::StringToInt(buffer_size_str, &buffer_size) && buffer_size > 0)
393 return buffer_size; 393 return buffer_size;
394 394
395 return 0; 395 return 0;
396 } 396 }
397 397
398 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog( 398 scoped_ptr<AudioLog> AudioManagerBase::CreateAudioLog(
399 AudioLogFactory::AudioComponent component) { 399 AudioLogFactory::AudioComponent component) {
400 return audio_log_factory_->CreateAudioLog(component); 400 return audio_log_factory_->CreateAudioLog(component);
401 } 401 }
402 402
403 void AudioManagerBase::SetHasKeyboardMic() { 403 void AudioManagerBase::SetHasKeyboardMic() {
404 NOTREACHED(); 404 NOTREACHED();
405 } 405 }
406 406
407 } // namespace media 407 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/alsa/audio_manager_alsa.cc ('k') | media/audio/fake_audio_input_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698