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

Unified Diff: mojo/edk/system/core.cc

Issue 2620633004: Remove mojo::edk::test::ScopedIPCSupport (Closed)
Patch Set: . Created 3 years, 11 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 | « mojo/edk/system/BUILD.gn ('k') | mojo/edk/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core.cc
diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
index cfcb777dfe7e03a8ebceb3e904848dd8209b4b8f..308c2879c4c3283007664f4a34dea5f582988e31 100644
--- a/mojo/edk/system/core.cc
+++ b/mojo/edk/system/core.cc
@@ -332,15 +332,7 @@ MojoResult Core::PassSharedMemoryHandle(
}
void Core::RequestShutdown(const base::Closure& callback) {
- base::Closure on_shutdown;
- if (base::ThreadTaskRunnerHandle::IsSet()) {
- on_shutdown = base::Bind(base::IgnoreResult(&base::TaskRunner::PostTask),
- base::ThreadTaskRunnerHandle::Get(),
- FROM_HERE, callback);
- } else {
- on_shutdown = callback;
- }
- GetNodeController()->RequestShutdown(on_shutdown);
+ GetNodeController()->RequestShutdown(callback);
}
ScopedMessagePipeHandle Core::CreateMessagePipe(
« no previous file with comments | « mojo/edk/system/BUILD.gn ('k') | mojo/edk/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698