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

Unified Diff: content/browser/webui/url_data_manager_backend.cc

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 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
Index: content/browser/webui/url_data_manager_backend.cc
diff --git a/content/browser/webui/url_data_manager_backend.cc b/content/browser/webui/url_data_manager_backend.cc
index 1c171c2645e555d66c2511c5f9b136543036e14e..ba1f5d4646e05e7298698d9320121da7aa85489b 100644
--- a/content/browser/webui/url_data_manager_backend.cc
+++ b/content/browser/webui/url_data_manager_backend.cc
@@ -12,11 +12,12 @@
#include "base/compiler_specific.h"
#include "base/debug/alias.h"
#include "base/lazy_instance.h"
+#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/ref_counted_memory.h"
#include "base/memory/weak_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "base/profiler/scoped_tracker.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"
@@ -639,19 +640,17 @@ bool URLDataManagerBackend::StartRequest(const net::URLRequest* request,
// is guaranteed because request for mime type is placed in the
// message loop before request for data. And correspondingly their
// replies are put on the IO thread in the same order.
- target_message_loop->PostTask(
+ target_message_loop->task_runner()->PostTask(
FROM_HERE,
- base::Bind(&GetMimeTypeOnUI,
- scoped_refptr<URLDataSourceImpl>(source),
+ base::Bind(&GetMimeTypeOnUI, scoped_refptr<URLDataSourceImpl>(source),
path, job->AsWeakPtr()));
// The DataSource wants StartDataRequest to be called on a specific thread,
// usually the UI thread, for this path.
- target_message_loop->PostTask(
- FROM_HERE,
- base::Bind(&URLDataManagerBackend::CallStartRequest,
- make_scoped_refptr(source), path, render_process_id,
- render_frame_id, request_id));
+ target_message_loop->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&URLDataManagerBackend::CallStartRequest,
+ make_scoped_refptr(source), path,
+ render_process_id, render_frame_id, request_id));
}
return true;
}
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | content/gpu/gpu_watchdog_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698