From 59383c78c7b67b435ff4970060213928e1f153b8 Mon Sep 17 00:00:00 2001 From: "erg@chromium.org" Date: Wed, 17 Apr 2013 16:43:27 +0000 Subject: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. In r174057, ajwong@ added support for implicit testing to scoped_ptr<>. Removes these in content/. BUG=232084 Review URL: https://codereview.chromium.org/14081010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194608 0039d316-1c4b-4281-b951-d872f2087c98 --- content/plugin/webplugin_proxy.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content/plugin/webplugin_proxy.cc') diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc index 5ac898d..56daa82 100644 --- a/content/plugin/webplugin_proxy.cc +++ b/content/plugin/webplugin_proxy.cc @@ -102,7 +102,7 @@ WebPluginProxy::~WebPluginProxy() { #if defined(OS_MACOSX) // Destroy the surface early, since it may send messages during cleanup. - if (accelerated_surface_.get()) + if (accelerated_surface_) accelerated_surface_.reset(); #endif @@ -275,7 +275,7 @@ WebPluginResourceClient* WebPluginProxy::GetResourceClient(int id) { } int WebPluginProxy::GetRendererId() { - if (channel_.get()) + if (channel_) return channel_->renderer_id(); return -1; } @@ -629,7 +629,7 @@ void WebPluginProxy::StartIme() { WebPluginAcceleratedSurface* WebPluginProxy::GetAcceleratedSurface( gfx::GpuPreference gpu_preference) { - if (!accelerated_surface_.get()) + if (!accelerated_surface_) accelerated_surface_.reset( WebPluginAcceleratedSurfaceProxy::Create(this, gpu_preference)); return accelerated_surface_.get(); -- cgit v1.1