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

Unified Diff: media/audio/audio_output_controller.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/base/data_buffer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_controller.cc
diff --git a/media/audio/audio_output_controller.cc b/media/audio/audio_output_controller.cc
index 602e232ce73bacb5f11b61f326f422d36ec69b06..4ba0f3e33a258f633768c3f9c6ad2696890be47e 100644
--- a/media/audio/audio_output_controller.cc
+++ b/media/audio/audio_output_controller.cc
@@ -58,8 +58,8 @@ scoped_refptr<AudioOutputController> AudioOutputController::Create(
return NULL;
// Starts the audio controller thread.
- scoped_refptr<AudioOutputController> controller = new AudioOutputController(
- event_handler, buffer_capacity, NULL);
+ scoped_refptr<AudioOutputController> controller(new AudioOutputController(
+ event_handler, buffer_capacity, NULL));
controller->message_loop_ =
AudioManager::GetAudioManager()->GetMessageLoop();
@@ -83,8 +83,8 @@ scoped_refptr<AudioOutputController> AudioOutputController::CreateLowLatency(
return NULL;
// Starts the audio controller thread.
- scoped_refptr<AudioOutputController> controller = new AudioOutputController(
- event_handler, 0, sync_reader);
+ scoped_refptr<AudioOutputController> controller(new AudioOutputController(
+ event_handler, 0, sync_reader));
controller->message_loop_ =
AudioManager::GetAudioManager()->GetMessageLoop();
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/base/data_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698