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

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

Issue 1911913002: Convert //media/audio from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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/audio_manager_base.h ('k') | media/audio/audio_manager_factory.h » ('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/macros.h" 10 #include "base/macros.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « media/audio/audio_manager_base.h ('k') | media/audio/audio_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698