Index: ios/web/webui/url_data_manager_ios_backend.mm |
diff --git a/ios/web/webui/url_data_manager_ios_backend.mm b/ios/web/webui/url_data_manager_ios_backend.mm |
index d98182f3a4887c71c194a37af8a7ba844469ebac..2dcf88350c3f69bc47fce7f41ae1b4bb3eff1541 100644 |
--- a/ios/web/webui/url_data_manager_ios_backend.mm |
+++ b/ios/web/webui/url_data_manager_ios_backend.mm |
@@ -17,6 +17,8 @@ |
#include "base/memory/ref_counted_memory.h" |
#include "base/memory/weak_ptr.h" |
#include "base/message_loop/message_loop.h" |
+#include "base/run_loop.h" |
sdefresne
2016/09/07 11:06:37
Why the include for base/run_loop.h? Seems unused.
fdoray
2016/09/07 13:16:03
Done.
|
+#include "base/single_thread_task_runner.h" |
#include "base/strings/string_util.h" |
#include "base/strings/stringprintf.h" |
#include "base/trace_event/trace_event.h" |
@@ -461,11 +463,11 @@ bool URLDataManagerIOSBackend::StartRequest(const net::URLRequest* request, |
// replies are put on the IO thread in the same order. |
base::MessageLoop* target_message_loop = |
web::WebThread::UnsafeGetMessageLoopForThread(web::WebThread::UI); |
- target_message_loop->PostTask( |
+ target_message_loop->task_runner()->PostTask( |
FROM_HERE, base::Bind(&GetMimeTypeOnUI, base::RetainedRef(source), path, |
job->weak_factory_.GetWeakPtr())); |
- target_message_loop->PostTask( |
+ target_message_loop->task_runner()->PostTask( |
FROM_HERE, base::Bind(&URLDataManagerIOSBackend::CallStartRequest, |
make_scoped_refptr(source), path, request_id)); |
return true; |