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

Unified Diff: webkit/plugins/ppapi/host_globals.cc

Issue 11189146: Eliminate implicit conversion from scoped_refptr<T> to T* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « webkit/plugins/ppapi/host_globals.h ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/host_globals.cc
diff --git a/webkit/plugins/ppapi/host_globals.cc b/webkit/plugins/ppapi/host_globals.cc
index 7705dccac2db47872d632e36291326e79ceda12b..12a39603ef62549ea597849d414b2f33b564743c 100644
--- a/webkit/plugins/ppapi/host_globals.cc
+++ b/webkit/plugins/ppapi/host_globals.cc
@@ -63,12 +63,12 @@ HostGlobals::~HostGlobals() {
return &host_var_tracker_;
}
-::ppapi::CallbackTracker* HostGlobals::GetCallbackTrackerForInstance(
- PP_Instance instance) {
+scoped_refptr< ::ppapi::CallbackTracker>
+HostGlobals::GetCallbackTrackerForInstance(PP_Instance instance) {
std::map<PP_Instance, linked_ptr<InstanceData> >::iterator found =
instance_map_.find(instance);
if (found == instance_map_.end())
- return NULL;
+ return scoped_refptr< ::ppapi::CallbackTracker>;
return found->second->instance->module()->GetCallbackTracker();
}
« no previous file with comments | « webkit/plugins/ppapi/host_globals.h ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698