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

Unified Diff: net/curvecp/messenger.cc

Issue 7825026: Revert "Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « net/base/network_change_notifier_win.cc ('k') | net/disk_cache/backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/curvecp/messenger.cc
diff --git a/net/curvecp/messenger.cc b/net/curvecp/messenger.cc
index ad6ed3151e46006750e61f97a6ec3ee74270a928..703bc2efe11f6e3f421523f08e3379f34731a877 100644
--- a/net/curvecp/messenger.cc
+++ b/net/curvecp/messenger.cc
@@ -94,8 +94,7 @@ int Messenger::Write(IOBuffer* buf, int buf_len, CompletionCallback* callback) {
int len = send_buffer_.write(buf->data(), buf_len);
if (!send_timer_.IsRunning())
- send_timer_.Start(FROM_HERE, base::TimeDelta(),
- this, &Messenger::OnSendTimer);
+ send_timer_.Start(base::TimeDelta(), this, &Messenger::OnSendTimer);
if (len)
return len;
@@ -184,7 +183,7 @@ void Messenger::OnSendMessageComplete(int result) {
LOG(ERROR) << "RttTimeout is " << rtt_.rtt_timeout();
base::TimeDelta delay =
base::TimeDelta::FromMicroseconds(rtt_.rtt_timeout());
- send_timeout_timer_.Start(FROM_HERE, delay, this, &Messenger::OnTimeout);
+ send_timeout_timer_.Start(delay, this, &Messenger::OnTimeout);
}
}
@@ -215,9 +214,9 @@ void Messenger::OnSendTimer() {
// Set the next send timer.
LOG(ERROR) << "SendRate is: " << rtt_.send_rate() << "us";
- send_timer_.Start(FROM_HERE,
- base::TimeDelta::FromMicroseconds(rtt_.send_rate()),
- this, &Messenger::OnSendTimer);
+ send_timer_.Start(base::TimeDelta::FromMicroseconds(rtt_.send_rate()),
+ this,
+ &Messenger::OnSendTimer);
// Create a block from the send_buffer.
if (!sent_list_.is_full()) {
« no previous file with comments | « net/base/network_change_notifier_win.cc ('k') | net/disk_cache/backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698