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

Unified Diff: chrome/browser/geolocation/mock_location_provider.cc

Issue 5744005: Revert rev 69137 due to incorrect change log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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/geolocation/mock_location_provider.cc
diff --git a/chrome/browser/geolocation/mock_location_provider.cc b/chrome/browser/geolocation/mock_location_provider.cc
index e3575f0f03e391d5727b42312e0bd18cb43a4bda..689ab9c161d5ff571c92098567e418548ea44670 100644
--- a/chrome/browser/geolocation/mock_location_provider.cc
+++ b/chrome/browser/geolocation/mock_location_provider.cc
@@ -78,9 +78,7 @@ class AutoMockLocationProvider : public MockLocationProvider {
position_.accuracy = 3;
position_.latitude = 4.3;
position_.longitude = -7.8;
- // Webkit compares the timestamp to wall clock time, so we need it to be
- // contemporary.
- position_.timestamp = base::Time::Now();
+ position_.timestamp = base::Time::FromDoubleT(4567.8);
} else {
position_.error_code = Geoposition::ERROR_CODE_POSITION_UNAVAILABLE;
}

Powered by Google App Engine
This is Rietveld 408576698