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

Issue 2870223003: Avoid base::Time::FromJavaTime() when not dealing with Java. (Closed)

Created:
3 years, 7 months ago by Lei Zhang
Modified:
3 years, 7 months ago
Reviewers:
miu
CC:
chromium-reviews, danakj+watch_chromium.org, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid base::Time::FromJavaTime() when not dealing with Java. Add comments to base/time/time.h to point readers to FromInternalValue()/ToInternalValue().

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -27 lines) Patch
M base/time/time.h View 1 chunk +4 lines, -0 lines 1 comment Download
M chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc View 9 chunks +25 lines, -27 lines 1 comment Download

Messages

Total messages: 20 (10 generated)
Lei Zhang
I think folks are not seeing FromInternalValue() because it's 150 lines up in TimeBase, so ...
3 years, 7 months ago (2017-05-10 17:10:20 UTC) #10
miu
https://codereview.chromium.org/2870223003/diff/1/base/time/time.h File base/time/time.h (right): https://codereview.chromium.org/2870223003/diff/1/base/time/time.h#newcode495 base/time/time.h:495: // Consider only using this when dealing with Javascript, ...
3 years, 7 months ago (2017-05-10 21:43:02 UTC) #11
Lei Zhang
What prompted my interest was https://codereview.chromium.org/2858353004/ which uses FromJavaTime() even though there's no Java involved. ...
3 years, 7 months ago (2017-05-10 23:43:00 UTC) #12
miu
On 2017/05/10 23:43:00, Lei Zhang (OOO) wrote: > What prompted my interest was https://codereview.chromium.org/2858353004/ which ...
3 years, 7 months ago (2017-05-11 21:12:44 UTC) #13
vitaliii
On 2017/05/11 21:12:44, miu wrote: > On 2017/05/10 23:43:00, Lei Zhang (OOO) wrote: > > ...
3 years, 7 months ago (2017-05-12 10:15:18 UTC) #14
Bernhard Bauer
On 2017/05/12 10:15:18, vitaliii wrote: > On 2017/05/11 21:12:44, miu wrote: > > On 2017/05/10 ...
3 years, 7 months ago (2017-05-12 10:53:31 UTC) #15
vitaliii
On 2017/05/12 10:53:31, Bernhard Bauer wrote: > On 2017/05/12 10:15:18, vitaliii wrote: > > On ...
3 years, 7 months ago (2017-05-12 11:50:00 UTC) #16
miu
On 2017/05/12 11:50:00, vitaliii wrote: > That's very nice, but still it is nearly impossible ...
3 years, 7 months ago (2017-05-12 23:05:02 UTC) #17
Lei Zhang
If we want to put together some documentation in docs/ and point to that in ...
3 years, 7 months ago (2017-05-19 00:51:53 UTC) #18
Lei Zhang
3 years, 7 months ago (2017-05-19 01:00:34 UTC) #19
Actually, it'll be cleaner to start with a new CL. Closing.

Powered by Google App Engine
This is Rietveld 408576698