| 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);
|
|
|