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

Unified Diff: chrome/browser/common/cancelable_request.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 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
Index: chrome/browser/common/cancelable_request.cc
diff --git a/chrome/browser/common/cancelable_request.cc b/chrome/browser/common/cancelable_request.cc
index 39fb29a1cf71d127d550772d6088b7a3b609139a..dbcb314d15b54272c68d6e671042b7c1aa5dea17 100644
--- a/chrome/browser/common/cancelable_request.cc
+++ b/chrome/browser/common/cancelable_request.cc
@@ -93,7 +93,7 @@ CancelableRequestBase::CancelableRequestBase()
: provider_(NULL),
consumer_(NULL),
handle_(0) {
- callback_thread_ = MessageLoop::current();
+ callback_thread_ = base::MessageLoop::current();
}
CancelableRequestBase::~CancelableRequestBase() {
@@ -110,7 +110,7 @@ void CancelableRequestBase::Init(CancelableRequestProvider* provider,
void CancelableRequestBase::DoForward(const base::Closure& forwarded_call,
bool force_async) {
- if (force_async || callback_thread_ != MessageLoop::current()) {
+ if (force_async || callback_thread_ != base::MessageLoop::current()) {
callback_thread_->PostTask(
FROM_HERE,
base::Bind(&CancelableRequestBase::ExecuteCallback, this,
@@ -123,7 +123,7 @@ void CancelableRequestBase::DoForward(const base::Closure& forwarded_call,
void CancelableRequestBase::ExecuteCallback(
const base::Closure& forwarded_call) {
- DCHECK_EQ(callback_thread_, MessageLoop::current());
+ DCHECK_EQ(callback_thread_, base::MessageLoop::current());
if (!canceled_.IsSet()) {
WillExecute();
« no previous file with comments | « chrome/browser/common/cancelable_request.h ('k') | chrome/browser/component_updater/test/component_installers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698