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

Unified Diff: tools/resource_prefetch_predictor/prefetch_predictor_tool.py

Issue 2891583002: Fuchsia port of base/time, with some refactoring of POSIX time modules. (Closed)
Patch Set: Created 3 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
Index: tools/resource_prefetch_predictor/prefetch_predictor_tool.py
diff --git a/tools/resource_prefetch_predictor/prefetch_predictor_tool.py b/tools/resource_prefetch_predictor/prefetch_predictor_tool.py
index 436e0216e787ee7b8ebbb98a80b605b239b75777..fc8e2e6e163de7bad137061beaa310263a0861dd 100755
--- a/tools/resource_prefetch_predictor/prefetch_predictor_tool.py
+++ b/tools/resource_prefetch_predictor/prefetch_predictor_tool.py
@@ -84,8 +84,7 @@ def DumpOriginDatabaseRow(domain, primary_key, proto):
from resource_prefetch_predictor_pb2 import OriginData
entry = OriginData()
entry.ParseFromString(proto)
- # For the offset, see kWindowsEpochDeltaMicroseconds in
- # base/time/time_posix.cc.
+ # For the offset, see kTimeTToMicrosecondsOffset in base/time/time_posix.cc.
Lei Zhang 2017/05/17 08:34:17 base/time/time_posix.cc doesn't exist anymore.
pasko 2017/05/17 13:34:25 this was explaining where the odd offset constant
miu 2017/05/18 02:52:38 Done.
miu 2017/05/18 02:52:38 Done.
last_visit_timestamp = int(entry.last_visit_time / 1e6 - 11644473600)
formatted_last_visit_time = datetime.datetime.utcfromtimestamp(
last_visit_timestamp).strftime('%Y-%m-%d %H:%M:%S')
« base/time/time_mac.cc ('K') | « content/browser/tracing/tracing_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698