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

Unified Diff: chrome/browser/extensions/api/processes/processes_api.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/extensions/api/processes/processes_api.cc
diff --git a/chrome/browser/extensions/api/processes/processes_api.cc b/chrome/browser/extensions/api/processes/processes_api.cc
index 25989bfab42f9819d02b03bfa51805dd7b7314c3..12ffe48c4e02fb1012016d2bbee0bf6a7f8e5851 100644
--- a/chrome/browser/extensions/api/processes/processes_api.cc
+++ b/chrome/browser/extensions/api/processes/processes_api.cc
@@ -551,8 +551,9 @@ bool GetProcessIdForTabFunction::RunImpl() {
// the data gathering.
if (ProcessesAPI::Get(profile_)->processes_event_router()->
is_task_manager_listening()) {
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
- &GetProcessIdForTabFunction::GetProcessIdForTab, this));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&GetProcessIdForTabFunction::GetProcessIdForTab, this));
} else {
registrar_.Add(this,
chrome::NOTIFICATION_TASK_MANAGER_CHILD_PROCESSES_DATA_READY,
@@ -614,8 +615,8 @@ bool TerminateFunction::RunImpl() {
// the data gathering.
if (ProcessesAPI::Get(profile_)->processes_event_router()->
is_task_manager_listening()) {
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
- &TerminateFunction::TerminateProcess, this));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&TerminateFunction::TerminateProcess, this));
} else {
registrar_.Add(this,
chrome::NOTIFICATION_TASK_MANAGER_CHILD_PROCESSES_DATA_READY,
@@ -702,8 +703,9 @@ bool GetProcessInfoFunction::RunImpl() {
// the data gathering.
if (ProcessesAPI::Get(profile_)->processes_event_router()->
is_task_manager_listening()) {
- MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
- &GetProcessInfoFunction::GatherProcessInfo, this));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&GetProcessInfoFunction::GatherProcessInfo, this));
} else {
registrar_.Add(this,
chrome::NOTIFICATION_TASK_MANAGER_CHILD_PROCESSES_DATA_READY,

Powered by Google App Engine
This is Rietveld 408576698