Index: content/browser/browser_main_runner.cc |
diff --git a/content/browser/browser_main_runner.cc b/content/browser/browser_main_runner.cc |
index 4b3c19c4aa7b7c90b8615594eaafb386078783ad..d89a8a5a99cf52fd093aa1568c7212ab40b53a3a 100644 |
--- a/content/browser/browser_main_runner.cc |
+++ b/content/browser/browser_main_runner.cc |
@@ -14,6 +14,7 @@ |
#include "base/metrics/statistics_recorder.h" |
#include "base/profiler/scoped_profile.h" |
#include "base/profiler/scoped_tracker.h" |
+#include "base/run_loop.h" |
#include "base/time/time.h" |
#include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
#include "base/trace_event/trace_event.h" |
@@ -207,7 +208,7 @@ class BrowserMainRunnerImpl : public BrowserMainRunner { |
// Forcefully terminates the RunLoop inside MessagePumpForUI, ensuring |
// proper shutdown for content_browsertests. Shutdown() is not used by |
// the actual browser. |
- if (base::MessageLoop::current()->is_running()) |
+ if (base::RunLoop::IsRunningOnCurrentThread()) |
base::MessageLoop::current()->QuitNow(); |
#endif |
main_loop_.reset(NULL); |