| 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();
|
|
|