diff options
author | Peter Kasting <pkasting@chromium.org> | 2023-10-21 03:46:09 +0000 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-20 20:52:29 -0700 |
commit | dfc48fc4de8e80416606e2aab42f430ced2a524e (patch) | |
tree | 49b67831154f7f8c9aef16f8a93f3823f3ab8cd5 | |
parent | b0671f6fad6c1f464aa9156043612993e0e44525 (diff) | |
download | zlib-dfc48fc4de8e80416606e2aab42f430ced2a524e.tar.gz |
Rename many Time functions:
* `FromDoubleT()` -> `FromSecondsSinceUnixEpoch()`
* `ToDoubleT()` -> `InSecondsFSinceUnixEpoch()`
* `FromJsTime()` -> `FromMillisecondsSinceUnixEpoch()`
* `ToJsTime*()` -> `InMillisecondsFSinceUnixEpoch*()`
* `FromJavaTime()` -> `FromMillisecondsSinceUnixEpoch()`
* `ToJavaTime()` -> `InMillisecondsSinceUnixEpoch()`
These are more descriptive of the functionality.
No other changes, aside from typecasting fixes in the following files:
* chrome/browser/ash/arc/fileapi/arc_documents_provider_root.cc
* third_party/blink/renderer/modules/notifications/notification_data.cc
* third_party/blink/renderer/modules/notifications/notification_data_test.cc
Further cleanup will happen separately, since this CL as-is isn't really
reviewable, only stampable.
Bug: none
No-Try: True
Change-Id: I9ba11d4a5ff0692e6060e3aa47327a6dfc37bbe5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4956111
Owners-Override: Gabriel Charette <gab@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1213083}
NOKEYCHECK=True
GitOrigin-RevId: 08b91b49531894cbe9061a1148fd535155c2554b
-rw-r--r-- | google/zip_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/google/zip_unittest.cc b/google/zip_unittest.cc index 611cea8..922d383 100644 --- a/google/zip_unittest.cc +++ b/google/zip_unittest.cc @@ -206,7 +206,7 @@ class VirtualFileSystem : public zip::FileAccessor { info->is_directory = !files_.count(path); info->last_modified = - base::Time::FromDoubleT(172097977); // Some random date. + base::Time::FromSecondsSinceUnixEpoch(172097977); // Some random date. return true; } |