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

Unified Diff: components/webdata/common/web_data_request_manager.cc

Issue 1144153004: components: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 7 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 | « components/web_resource/web_resource_service.cc ('k') | components/webdata/common/web_data_service_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata/common/web_data_request_manager.cc
diff --git a/components/webdata/common/web_data_request_manager.cc b/components/webdata/common/web_data_request_manager.cc
index 9a928556a26050d8acd074bfb9918a58417d1449..701f8f69959cec82513d621b7b5fa2f12647d67c 100644
--- a/components/webdata/common/web_data_request_manager.cc
+++ b/components/webdata/common/web_data_request_manager.cc
@@ -5,8 +5,10 @@
#include "components/webdata/common/web_data_request_manager.h"
#include "base/bind.h"
+#include "base/location.h"
#include "base/message_loop/message_loop.h"
#include "base/profiler/scoped_tracker.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
////////////////////////////////////////////////////////////////////////////////
@@ -111,10 +113,9 @@ void WebDataRequestManager::CancelRequest(WebDataServiceBase::Handle h) {
void WebDataRequestManager::RequestCompleted(
scoped_ptr<WebDataRequest> request) {
base::MessageLoop* loop = request->GetMessageLoop();
- loop->PostTask(FROM_HERE,
- base::Bind(&WebDataRequestManager::RequestCompletedOnThread,
- this,
- base::Passed(&request)));
+ loop->task_runner()->PostTask(
+ FROM_HERE, base::Bind(&WebDataRequestManager::RequestCompletedOnThread,
+ this, base::Passed(&request)));
}
void WebDataRequestManager::RequestCompletedOnThread(
« no previous file with comments | « components/web_resource/web_resource_service.cc ('k') | components/webdata/common/web_data_service_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698