diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 20:15:57 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-02 20:15:57 +0000 |
commit | 00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1 (patch) | |
tree | eb61d6402a5e967e5eb1d41dfde730af48dfa55f /chrome/renderer | |
parent | d9b888cdf9ad654a3f2e5c22b935e68db77a71ef (diff) | |
download | chromium_src-00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1.zip chromium_src-00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1.tar.gz chromium_src-00cd9c4e71d1e6dd6cc3a2fff60505479304c9d1.tar.bz2 |
Convert implicit scoped_refptr constructor calls to explicit ones, part 2
This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2826041
I then did quite a bit of manual editing to fix style issues.
BUG=28083
TEST=None
Review URL: http://codereview.chromium.org/4291001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_view.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 471c2a5..72ca031 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -2607,7 +2607,8 @@ WebMediaPlayer* RenderView::createMediaPlayer( const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); if (!cmd_line->HasSwitch(switches::kDisableAudio)) { // Add the chrome specific audio renderer. - collection.push_back(new AudioRendererImpl(audio_message_filter())); + collection.push_back(make_scoped_refptr( + new AudioRendererImpl(audio_message_filter()))); } if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) && @@ -2618,8 +2619,8 @@ WebMediaPlayer* RenderView::createMediaPlayer( bool ret = frame->view()->graphicsContext3D()->makeContextCurrent(); CHECK(ret) << "Failed to switch context"; - collection.push_back(new IpcVideoDecoder( - MessageLoop::current(), ggl::GetCurrentContext())); + collection.push_back(make_scoped_refptr(new IpcVideoDecoder( + MessageLoop::current(), ggl::GetCurrentContext()))); } WebApplicationCacheHostImpl* appcache_host = |