Index: content/browser/loader/loader_io_thread_notifier.cc |
diff --git a/content/browser/loader/loader_io_thread_notifier.cc b/content/browser/loader/loader_io_thread_notifier.cc |
index a10537c9d3d342714e9245ce6628915cf3343176..9ae1111c3565fd232b3da6c17082fd73c785a43b 100644 |
--- a/content/browser/loader/loader_io_thread_notifier.cc |
+++ b/content/browser/loader/loader_io_thread_notifier.cc |
@@ -6,8 +6,8 @@ |
#include "content/browser/frame_host/render_frame_host_impl.h" |
#include "content/browser/loader/global_routing_id.h" |
+#include "content/browser/loader/loader_globals.h" |
#include "content/browser/loader/resource_dispatcher_host_impl.h" |
-#include "content/public/browser/browser_thread.h" |
jam
2017/03/29 15:44:32
this file isn't going to move, since it's using Re
ananta
2017/03/29 19:41:04
Thanks. done
|
namespace content { |
@@ -28,11 +28,10 @@ LoaderIOThreadNotifier::~LoaderIOThreadNotifier() {} |
void LoaderIOThreadNotifier::RenderFrameDeleted( |
RenderFrameHost* render_frame_host) { |
- BrowserThread::PostTask( |
- BrowserThread::IO, FROM_HERE, |
- base::Bind(&NotifyRenderFrameDeletedOnIO, |
- static_cast<RenderFrameHostImpl*>(render_frame_host) |
- ->GetGlobalFrameRoutingId())); |
+ LoaderGlobals::Get()->io_thread_task_runner()->PostTask( |
+ FROM_HERE, base::Bind(&NotifyRenderFrameDeletedOnIO, |
+ static_cast<RenderFrameHostImpl*>(render_frame_host) |
+ ->GetGlobalFrameRoutingId())); |
} |
} // namespace content |