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

Unified Diff: ios/web/webui/url_data_manager_ios_backend.mm

Issue 2314243002: Remove calls to deprecated MessageLoop methods in ios. (Closed)
Patch Set: CR Created 4 years, 3 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
« no previous file with comments | « ios/chrome/browser/browser_state/test_chrome_browser_state.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « ios/chrome/browser/browser_state/test_chrome_browser_state.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698