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

Unified Diff: net/quic/quic_clock.cc

Issue 16360017: Fix QuicClock::WallNow to return a correct value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 7 years, 6 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 | « no previous file | net/quic/quic_clock_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_clock.cc
diff --git a/net/quic/quic_clock.cc b/net/quic/quic_clock.cc
index 6c8dd48d21852289c7219b00619ed9ded9ebe850..b80ad6ab5f5a45aef37a7fce6022a7f3931bd86c 100644
--- a/net/quic/quic_clock.cc
+++ b/net/quic/quic_clock.cc
@@ -23,8 +23,7 @@ QuicTime QuicClock::Now() const {
}
QuicWallTime QuicClock::WallNow() const {
- return QuicWallTime::FromUNIXSeconds(
- base::Time::Now().ToInternalValue() / 1000000);
+ return QuicWallTime::FromUNIXSeconds(base::Time::Now().ToTimeT());
}
} // namespace net
« no previous file with comments | « no previous file | net/quic/quic_clock_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698