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

Unified Diff: mojo/environment/default_run_loop_impl.cc

Issue 883583005: Copy build changes to compile mojo::AsyncWaiter to the chromium repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/environment/BUILD.gn ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/environment/default_run_loop_impl.cc
diff --git a/mojo/environment/default_run_loop_impl.cc b/mojo/environment/default_run_loop_impl.cc
index 07037b73430f1ce8619df0b2f4592166f488c411..4fa9ffd1f46574b2b593acdf53336ff9fea9e217 100644
--- a/mojo/environment/default_run_loop_impl.cc
+++ b/mojo/environment/default_run_loop_impl.cc
@@ -11,12 +11,16 @@ namespace mojo {
namespace internal {
void InstantiateDefaultRunLoopImpl() {
+ CHECK(!base::MessageLoop::current());
// Not leaked: accessible from |base::MessageLoop::current()|.
- new base::MessageLoop();
+ base::MessageLoop* message_loop = new base::MessageLoop();
+ CHECK_EQ(message_loop, base::MessageLoop::current());
}
void DestroyDefaultRunLoopImpl() {
+ CHECK(base::MessageLoop::current());
delete base::MessageLoop::current();
+ CHECK(!base::MessageLoop::current());
}
} // namespace internal
« no previous file with comments | « mojo/environment/BUILD.gn ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698