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

Unified Diff: content/renderer/media/crypto/pepper_cdm_wrapper_impl.cc

Issue 480233007: Remove implicit conversions from scoped_refptr to T* in content/renderer/media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | content/renderer/media/media_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/crypto/pepper_cdm_wrapper_impl.cc
diff --git a/content/renderer/media/crypto/pepper_cdm_wrapper_impl.cc b/content/renderer/media/crypto/pepper_cdm_wrapper_impl.cc
index c443e031fc6a3668728a14188bb86300b7713a60..3fc884aca28751f1faa5d5061b7e4a0cc8861ab1 100644
--- a/content/renderer/media/crypto/pepper_cdm_wrapper_impl.cc
+++ b/content/renderer/media/crypto/pepper_cdm_wrapper_impl.cc
@@ -39,7 +39,7 @@ scoped_ptr<PepperCdmWrapper> PepperCdmWrapperImpl::Create(
PepperWebPluginImpl* ppapi_plugin = static_cast<PepperWebPluginImpl*>(plugin);
scoped_refptr<PepperPluginInstanceImpl> plugin_instance =
ppapi_plugin->instance();
- if (!plugin_instance)
+ if (!plugin_instance.get())
return scoped_ptr<PepperCdmWrapper>();
GURL url(plugin_instance->container()->element().document().url());
@@ -59,7 +59,7 @@ PepperCdmWrapperImpl::PepperCdmWrapperImpl(
: helper_plugin_(helper_plugin.Pass()),
plugin_instance_(plugin_instance) {
DCHECK(helper_plugin_);
- DCHECK(plugin_instance_);
+ DCHECK(plugin_instance_.get());
// Plugin must be a CDM.
DCHECK(plugin_instance_->GetContentDecryptorDelegate());
}
« no previous file with comments | « no previous file | content/renderer/media/media_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698