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

Unified Diff: content/plugin/webplugin_proxy.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/webplugin_proxy.cc
diff --git a/content/plugin/webplugin_proxy.cc b/content/plugin/webplugin_proxy.cc
index 5ac898dd47a8685c245466bdd6cca422014188c0..56daa827f1d7a1b3fe2ca55b51a3e5713aac391b 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();
« no previous file with comments | « content/plugin/webplugin_delegate_stub.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698