From 8a260565207ee5bccc967f1737ccb1b504f09549 Mon Sep 17 00:00:00 2001 From: Peter Kasting Date: Thu, 14 Sep 2023 03:57:15 +0000 Subject: [PATCH] Clarify/correct some names/namespaces. Bug: none Change-Id: Id7babbc8374b70132c7b716db20b10d0ce677cc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4865007 Reviewed-by: Daniel Cheng Commit-Queue: Daniel Cheng Auto-Submit: Peter Kasting Cr-Commit-Position: refs/heads/main@{#1196405} --- PRESUBMIT.py | 5 +++-- base/time/time.h | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 2e975f56b035d6..68b4c12acf7b9c 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -634,8 +634,9 @@ class BanRule: 'deprecated (http://crbug.com/634507). Please avoid converting away', 'from the Time types in Chromium code, especially if any math is', 'being done on time values. For interfacing with platform/library', - 'APIs, use FromMicroseconds() or InMicroseconds(), or one of the other', - 'type converter methods instead. For faking TimeXXX values (for unit', + 'APIs, use base::Time::(From,To)DeltaSinceWindowsEpoch() or', + 'base::{TimeDelta::In}Microseconds(), or one of the other type', + 'converter methods instead. For faking TimeXXX values (for unit', 'testing only), use TimeXXX() + Microseconds(N). For', 'other use cases, please contact base/time/OWNERS.', ), diff --git a/base/time/time.h b/base/time/time.h index 42d812b3ab5237..b69e4591c52fc0 100644 --- a/base/time/time.h +++ b/base/time/time.h @@ -752,7 +752,7 @@ class BASE_EXPORT Time : public time_internal::TimeBase