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

Unified Diff: mojo/services/view_manager/context_factory_impl.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/services/view_manager/context_factory_impl.cc
diff --git a/mojo/services/view_manager/context_factory_impl.cc b/mojo/services/view_manager/context_factory_impl.cc
index 67726594581c6745265fd4aba4ad8766a303f144..a4f7d90dcedc4e67e36641b7591559faf1b1d11b 100644
--- a/mojo/services/view_manager/context_factory_impl.cc
+++ b/mojo/services/view_manager/context_factory_impl.cc
@@ -48,13 +48,13 @@ void ContextFactoryImpl::RemoveReflector(
scoped_refptr<cc::ContextProvider>
ContextFactoryImpl::SharedMainThreadContextProvider() {
- if (!shared_main_thread_contexts_ ||
+ if (!shared_main_thread_contexts_.get() ||
shared_main_thread_contexts_->DestroyedOnMainThread()) {
bool lose_context_when_out_of_memory = false;
shared_main_thread_contexts_ =
webkit::gpu::ContextProviderInProcess::CreateOffscreen(
lose_context_when_out_of_memory);
- if (shared_main_thread_contexts_ &&
+ if (shared_main_thread_contexts_.get() &&
!shared_main_thread_contexts_->BindToCurrentThread())
shared_main_thread_contexts_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698