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

Unified Diff: chrome/browser/task_manager/task_manager.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/task_manager/task_manager.cc
diff --git a/chrome/browser/task_manager/task_manager.cc b/chrome/browser/task_manager/task_manager.cc
index 86d08e44c22b641c54b0a6b61afb46cb7812acad..1f525ced0c60cd1570617b76601f7e21920bdf32 100644
--- a/chrome/browser/task_manager/task_manager.cc
+++ b/chrome/browser/task_manager/task_manager.cc
@@ -1077,7 +1077,7 @@ void TaskManagerModel::StartUpdating() {
// If update_state_ is STOPPING, it means a task is still pending. Setting
// it to TASK_PENDING ensures the tasks keep being posted (by Refresh()).
if (update_state_ == IDLE) {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&TaskManagerModel::RefreshCallback, this));
}
@@ -1233,7 +1233,7 @@ void TaskManagerModel::NotifyBytesRead(const net::URLRequest& request,
origin_pid = info->GetOriginPID();
if (bytes_read_buffer_.empty()) {
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&TaskManagerModel::NotifyMultipleBytesRead, this),
base::TimeDelta::FromSeconds(1));
@@ -1259,7 +1259,7 @@ void TaskManagerModel::RefreshCallback() {
Refresh();
// Schedule the next update.
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&TaskManagerModel::RefreshCallback, this),
base::TimeDelta::FromMilliseconds(kUpdateTimeMs));

Powered by Google App Engine
This is Rietveld 408576698