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

Unified Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 501993003: Remove implicit conversions from scoped_refptr to T* in components/nacl/ (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 | « components/nacl/browser/pnacl_translation_cache_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/ppb_nacl_private_impl.cc
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc
index 44af080991f80e15921c36f8a64b94ae23d69183..5bc480b111b367fa89dca2c3c7c0091e8c24a5ec 100644
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
@@ -80,10 +80,10 @@ bool InitializePnaclResourceHost() {
content::RenderThread* render_thread = content::RenderThread::Get();
if (!render_thread)
return false;
- if (!g_pnacl_resource_host.Get()) {
+ if (!g_pnacl_resource_host.Get().get()) {
g_pnacl_resource_host.Get() = new PnaclTranslationResourceHost(
render_thread->GetIOMessageLoopProxy());
- render_thread->AddFilter(g_pnacl_resource_host.Get());
+ render_thread->AddFilter(g_pnacl_resource_host.Get().get());
}
return true;
}
@@ -662,7 +662,7 @@ void ReportTranslationFinished(PP_Instance instance,
// If the resource host isn't initialized, don't try to do that here.
// Just return because something is already very wrong.
- if (g_pnacl_resource_host.Get() == NULL)
+ if (g_pnacl_resource_host.Get().get() == NULL)
return;
g_pnacl_resource_host.Get()->ReportTranslationFinished(instance, success);
}
« no previous file with comments | « components/nacl/browser/pnacl_translation_cache_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698