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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2518413003: NOT FOR COMMIT loop gpu init crash
Patch Set: dec2 Created 4 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
« no previous file with comments | « no previous file | content/browser/browser_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index f9235bdbbb6f60c9e94f79e1e650633d3535192d..4390ef38f73a155c9460e38e496a7a63396d5eb1 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -931,6 +931,12 @@ int BrowserMainLoop::CreateThreads() {
return result_code_;
}
+static void LogDog() {
+LOG(ERROR) << "boliu LogDog";
+base::MessageLoop::current()->PostDelayedTask(
+ FROM_HERE, base::Bind(&LogDog), base::TimeDelta::FromMilliseconds(100));
+}
+
int BrowserMainLoop::PreMainMessageLoopRun() {
if (parts_) {
TRACE_EVENT0("startup",
@@ -939,6 +945,8 @@ int BrowserMainLoop::PreMainMessageLoopRun() {
parts_->PreMainMessageLoopRun();
}
+ BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, base::Bind(&LogDog));
+
// If the UI thread blocks, the whole UI is unresponsive.
// Do not allow disk IO from the UI thread.
base::ThreadRestrictions::SetIOAllowed(false);
« no previous file with comments | « no previous file | content/browser/browser_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698