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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 16256018: Update content/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix incorrectly modified code Created 7 years, 7 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
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index 2b0bcda5a48249c7ed4e51f61cbc1d5ea640242a..58408375dd3a403da128703afd4eaa02c45d5d34 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -930,17 +930,17 @@ void PepperPluginDelegateImpl::OnPpapiBrokerPermissionResult(
DCHECK(client_ptr.get());
pending_permission_requests_.Remove(request_id);
base::WeakPtr<webkit::ppapi::PPB_Broker_Impl> client = *client_ptr;
- if (!client)
+ if (!client.get())
return;
webkit::ppapi::PluginModule* plugin_module =
- webkit::ppapi::ResourceHelper::GetPluginModule(client);
+ webkit::ppapi::ResourceHelper::GetPluginModule(client.get());
if (!plugin_module)
return;
PepperBrokerImpl* broker =
static_cast<PepperBrokerImpl*>(plugin_module->GetBroker());
- broker->OnBrokerPermissionResult(client, result);
+ broker->OnBrokerPermissionResult(client.get(), result);
}
bool PepperPluginDelegateImpl::AsyncOpenFile(
« no previous file with comments | « content/renderer/pepper/pepper_platform_video_capture_impl.cc ('k') | content/renderer/pepper/pepper_video_source_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698