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

Unified Diff: mojo/edk/embedder/embedder.cc

Issue 782693004: Update mojo sdk to rev f6c8ec07c01deebc13178d516225fd12695c3dc2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hack mojo_system_impl gypi for android :| Created 6 years 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/edk/embedder/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index 9c73eb0e1250159694cfcb534c30511aae58f578..d538810ff51d369d867560af9588930ec774f800 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -62,7 +62,7 @@ void CreateChannelHelper(
MakeChannel(platform_handle.Pass(), channel_endpoint);
// Hand the channel back to the embedder.
- if (callback_thread_task_runner.get()) {
+ if (callback_thread_task_runner) {
callback_thread_task_runner->PostTask(
FROM_HERE, base::Bind(callback, channel_info.release()));
} else {
@@ -118,7 +118,7 @@ ScopedMessagePipeHandle CreateChannel(
DidCreateChannelCallback callback,
scoped_refptr<base::TaskRunner> callback_thread_task_runner) {
DCHECK(platform_handle.is_valid());
- DCHECK(io_thread_task_runner.get());
+ DCHECK(io_thread_task_runner);
DCHECK(!callback.is_null());
scoped_refptr<system::ChannelEndpoint> channel_endpoint;
@@ -195,7 +195,7 @@ MojoResult PassWrappedPlatformHandle(MojoHandle platform_handle_wrapper_handle,
DCHECK(internal::g_core);
scoped_refptr<system::Dispatcher> dispatcher(
internal::g_core->GetDispatcher(platform_handle_wrapper_handle));
- if (!dispatcher.get())
+ if (!dispatcher)
return MOJO_RESULT_INVALID_ARGUMENT;
if (dispatcher->GetType() != system::Dispatcher::kTypePlatformHandle)

Powered by Google App Engine
This is Rietveld 408576698