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

Unified Diff: chrome/browser/net/network_stats.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
« no previous file with comments | « chrome/browser/net/net_log_temp_file_unittest.cc ('k') | chrome/browser/net/network_stats_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/network_stats.cc
diff --git a/chrome/browser/net/network_stats.cc b/chrome/browser/net/network_stats.cc
index 70f47ea308640187d92f55dad4a3f438e577db6f..86a19f05abef0059052e55bb889eb1f6f6670ad1 100644
--- a/chrome/browser/net/network_stats.cc
+++ b/chrome/browser/net/network_stats.cc
@@ -265,14 +265,14 @@ void NetworkStats::SendPacket() {
void NetworkStats::SendNextPacketAfterDelay() {
if (current_test_ == PACED_PACKET_TEST) {
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&NetworkStats::SendPacket, weak_factory_.GetWeakPtr()),
average_time_);
return;
}
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&NetworkStats::SendPacket, weak_factory_.GetWeakPtr()));
}
@@ -324,7 +324,7 @@ void NetworkStats::OnReadComplete(int result) {
// of 1ms so that the time-out will fire before we have time to really hog
// the CPU too extensively (waiting for the time-out) in case of an infinite
// loop.
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&NetworkStats::ReadData, weak_factory_.GetWeakPtr()),
base::TimeDelta::FromMilliseconds(1));
@@ -351,7 +351,7 @@ void NetworkStats::OnWriteComplete(int result) {
DCHECK_EQ(bytes_to_send_, 0u);
}
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&NetworkStats::SendPacket, weak_factory_.GetWeakPtr()));
}
@@ -432,7 +432,7 @@ void NetworkStats::DidSendData(int bytes_sent) {
}
void NetworkStats::StartReadDataTimer(int milliseconds) {
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&NetworkStats::OnReadDataTimeout,
weak_factory_.GetWeakPtr(),
@@ -649,7 +649,7 @@ void NetworkStats::Finish(Status status, int result) {
if (next_test() == NON_PACED_PACKET_TEST ||
next_test() == PACED_PACKET_TEST) {
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
base::Bind(&NetworkStats::RestartPacketTest,
weak_factory_.GetWeakPtr()));
« no previous file with comments | « chrome/browser/net/net_log_temp_file_unittest.cc ('k') | chrome/browser/net/network_stats_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698