Index: ppapi/proxy/plugin_resource_var.cc |
diff --git a/ppapi/proxy/plugin_resource_var.cc b/ppapi/proxy/plugin_resource_var.cc |
index be4eec5b674cfe691d5034547dcaa0a57e567395..84657c0cea39af086af82877cb87c1a548fac410 100644 |
--- a/ppapi/proxy/plugin_resource_var.cc |
+++ b/ppapi/proxy/plugin_resource_var.cc |
@@ -10,7 +10,7 @@ PluginResourceVar::PluginResourceVar(ppapi::Resource* resource) |
: resource_(resource) {} |
PP_Resource PluginResourceVar::GetPPResource() const { |
- return resource_ ? resource_->pp_resource() : 0; |
+ return resource_.get() ? resource_->pp_resource() : 0; |
} |
bool PluginResourceVar::IsPending() const { |