Index: chrome/browser/profiles/profile_destroyer.cc |
diff --git a/chrome/browser/profiles/profile_destroyer.cc b/chrome/browser/profiles/profile_destroyer.cc |
index 5ce9aaa4c3796ca8484347ef00281ce5a4f63b4b..532b3918d1311ea18c71b01dda0ae31b48fd19b0 100644 |
--- a/chrome/browser/profiles/profile_destroyer.cc |
+++ b/chrome/browser/profiles/profile_destroyer.cc |
@@ -5,8 +5,10 @@ |
#include "chrome/browser/profiles/profile_destroyer.h" |
#include "base/bind.h" |
+#include "base/location.h" |
#include "base/memory/scoped_ptr.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "base/trace_event/trace_event.h" |
#include "chrome/browser/profiles/profile.h" |
#include "content/public/browser/render_process_host.h" |
@@ -142,9 +144,9 @@ void ProfileDestroyer::RenderProcessHostDestroyed( |
if (num_hosts_ == 0) { |
// Delay the destruction one step further in case other observers need to |
// look at the profile attached to the host. |
- base::MessageLoop::current()->PostTask( |
- FROM_HERE, base::Bind( |
- &ProfileDestroyer::DestroyProfile, weak_ptr_factory_.GetWeakPtr())); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, base::Bind(&ProfileDestroyer::DestroyProfile, |
+ weak_ptr_factory_.GetWeakPtr())); |
} |
} |