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

Unified Diff: content/browser/browser_shutdown_profile_dumper.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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();

Powered by Google App Engine
This is Rietveld 408576698