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

Unified Diff: base/message_loop.cc

Issue 8343033: Add CHECK to catch places where BrowserProcessImpl's refcount goes to 0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « base/message_loop.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 553efb1e3b894d8911806cbd8bc2470a5f62584f..e9cad86f6662eca1a7e2722ca7d13729740e2700 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -408,6 +408,11 @@ void MessageLoop::AssertIdle() const {
DCHECK(incoming_queue_.empty());
}
+bool MessageLoop::is_running() const {
+ DCHECK_EQ(this, current());
+ return state_ != NULL;
+}
+
//------------------------------------------------------------------------------
// Runs the loop in two different SEH modes:
« no previous file with comments | « base/message_loop.h ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698