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..3429871e87e241c68d16ca105c22e17b7bfca1f8 100644 |
--- a/ios/web/webui/url_data_manager_ios_backend.mm |
+++ b/ios/web/webui/url_data_manager_ios_backend.mm |
@@ -17,6 +17,7 @@ |
#include "base/memory/ref_counted_memory.h" |
#include "base/memory/weak_ptr.h" |
#include "base/message_loop/message_loop.h" |
+#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 +462,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; |