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

Unified Diff: ipc/ipc_logging.cc

Issue 14383024: ipc: Use base::MessageLoop. (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
« no previous file with comments | « ipc/ipc_logging.h ('k') | ipc/ipc_perftests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_logging.cc
diff --git a/ipc/ipc_logging.cc b/ipc/ipc_logging.cc
index 0691a9a000135930d3c9e3f042e384e643e20e6c..7c7c961e46bf2ca12eeab19b4a1a3cb431f7d653 100644
--- a/ipc/ipc_logging.cc
+++ b/ipc/ipc_logging.cc
@@ -46,7 +46,7 @@ Logging::Logging()
enabled_color_(false),
queue_invoke_later_pending_(false),
sender_(NULL),
- main_thread_(MessageLoop::current()),
+ main_thread_(base::MessageLoop::current()),
consumer_(NULL) {
#if defined(OS_WIN)
// getenv triggers an unsafe warning. Simply check how big of a buffer
@@ -159,7 +159,7 @@ void Logging::OnPostDispatchMessage(const Message& message,
LogData data;
GenerateLogData(channel_id, message, &data, true);
- if (MessageLoop::current() == main_thread_) {
+ if (base::MessageLoop::current() == main_thread_) {
Log(data);
} else {
main_thread_->PostTask(
@@ -232,8 +232,9 @@ void Logging::Log(const LogData& data) {
queued_logs_.push_back(data);
if (!queue_invoke_later_pending_) {
queue_invoke_later_pending_ = true;
- MessageLoop::current()->PostDelayedTask(
- FROM_HERE, base::Bind(&Logging::OnSendLogs, base::Unretained(this)),
+ base::MessageLoop::current()->PostDelayedTask(
+ FROM_HERE,
+ base::Bind(&Logging::OnSendLogs, base::Unretained(this)),
base::TimeDelta::FromMilliseconds(kLogSendDelayMs));
}
}
« no previous file with comments | « ipc/ipc_logging.h ('k') | ipc/ipc_perftests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698