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

Unified Diff: mojo/examples/pepper_container_app/mojo_ppapi_globals.cc

Issue 502573006: Remove implicit conversions from scoped_refptr to T* in mojo/ (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
Index: mojo/examples/pepper_container_app/mojo_ppapi_globals.cc
diff --git a/mojo/examples/pepper_container_app/mojo_ppapi_globals.cc b/mojo/examples/pepper_container_app/mojo_ppapi_globals.cc
index 33f87176051b16908b6ff36cdcf992dea3a3a62d..aaf9b0a7ba1ca5083422777827126d6dc1f7592b 100644
--- a/mojo/examples/pepper_container_app/mojo_ppapi_globals.cc
+++ b/mojo/examples/pepper_container_app/mojo_ppapi_globals.cc
@@ -155,7 +155,7 @@ PP_Module MojoPpapiGlobals::GetModuleForInstance(PP_Instance instance) {
ppapi::MessageLoopShared* MojoPpapiGlobals::GetCurrentMessageLoop() {
if (base::MessageLoopProxy::current().get() == GetMainThreadMessageLoop()) {
- if (!main_thread_message_loop_resource_) {
+ if (!main_thread_message_loop_resource_.get()) {
main_thread_message_loop_resource_ = new MainThreadMessageLoopResource(
GetMainThreadMessageLoop());
}

Powered by Google App Engine
This is Rietveld 408576698