Index: content/browser/browser_shutdown_profile_dumper.cc |
diff --git a/content/browser/browser_shutdown_profile_dumper.cc b/content/browser/browser_shutdown_profile_dumper.cc |
index 6c4d8c8c14a76418be1cf27fdf22bfea293e1d44..c23d8d16000d0f1e20167a071bdc9277ea9a0056 100644 |
--- a/content/browser/browser_shutdown_profile_dumper.cc |
+++ b/content/browser/browser_shutdown_profile_dumper.cc |
@@ -8,7 +8,9 @@ |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
#include "base/files/file_util.h" |
+#include "base/location.h" |
#include "base/logging.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/threading/thread.h" |
#include "base/threading/thread_restrictions.h" |
@@ -59,11 +61,10 @@ void BrowserShutdownProfileDumper::WriteTracesToDisc() { |
base::WaitableEvent flush_complete_event(false, false); |
base::Thread flush_thread("browser_shutdown_trace_event_flush"); |
flush_thread.Start(); |
- flush_thread.message_loop()->PostTask( |
- FROM_HERE, |
- base::Bind(&BrowserShutdownProfileDumper::EndTraceAndFlush, |
- base::Unretained(this), |
- base::Unretained(&flush_complete_event))); |
+ flush_thread.task_runner()->PostTask( |
+ FROM_HERE, base::Bind(&BrowserShutdownProfileDumper::EndTraceAndFlush, |
+ base::Unretained(this), |
+ base::Unretained(&flush_complete_event))); |
bool original_wait_allowed = base::ThreadRestrictions::SetWaitAllowed(true); |
flush_complete_event.Wait(); |