diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-06 05:25:11 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-06 05:25:11 +0000 |
commit | d14c5b33046616ee8715181d70bc7fe33659be17 (patch) | |
tree | 490118db7e397d91dd45e4746060b20ab76c0d58 /components/webdata/common | |
parent | a10a5f8279a043789a5f6ae41b2675fc23799976 (diff) | |
download | chromium_src-d14c5b33046616ee8715181d70bc7fe33659be17.zip chromium_src-d14c5b33046616ee8715181d70bc7fe33659be17.tar.gz chromium_src-d14c5b33046616ee8715181d70bc7fe33659be17.tar.bz2 |
components: Use base::MessageLoop.
BUG=236029
R=joi@chromium.org
Review URL: https://chromiumcodereview.appspot.com/14021020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/webdata/common')
-rw-r--r-- | components/webdata/common/web_data_request_manager.cc | 12 | ||||
-rw-r--r-- | components/webdata/common/web_data_service_test_util.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/components/webdata/common/web_data_request_manager.cc b/components/webdata/common/web_data_request_manager.cc index abba122..c6e15f9 100644 --- a/components/webdata/common/web_data_request_manager.cc +++ b/components/webdata/common/web_data_request_manager.cc @@ -21,7 +21,7 @@ WebDataRequest::WebDataRequest(WebDataServiceConsumer* consumer, consumer_(consumer), result_(NULL) { handle_ = manager_->GetNextRequestHandle(); - message_loop_ = MessageLoop::current(); + message_loop_ = base::MessageLoop::current(); manager_->RegisterRequest(this); } @@ -112,11 +112,11 @@ void WebDataRequestManager::CancelRequest(WebDataServiceBase::Handle h) { void WebDataRequestManager::RequestCompleted( scoped_ptr<WebDataRequest> request) { - MessageLoop* loop = request->GetMessageLoop(); - loop->PostTask(FROM_HERE, base::Bind( - &WebDataRequestManager::RequestCompletedOnThread, - this, - base::Passed(&request))); + base::MessageLoop* loop = request->GetMessageLoop(); + loop->PostTask(FROM_HERE, + base::Bind(&WebDataRequestManager::RequestCompletedOnThread, + this, + base::Passed(&request))); } void WebDataRequestManager::RequestCompletedOnThread( diff --git a/components/webdata/common/web_data_service_test_util.h b/components/webdata/common/web_data_service_test_util.h index e3ee512..0b32c33 100644 --- a/components/webdata/common/web_data_service_test_util.h +++ b/components/webdata/common/web_data_service_test_util.h @@ -26,7 +26,7 @@ class AutofillWebDataServiceConsumer: public WebDataServiceConsumer { static_cast<const WDResult<T>*>(result); result_ = wrapped_result->GetValue(); - MessageLoop::current()->Quit(); + base::MessageLoop::current()->Quit(); } WebDataService::Handle handle() { return handle_; } |