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

Issue 2935783002: Send microsecond resolution timestamps to Java history page so they can be sent back. (Closed)

Created:
3 years, 6 months ago by skym
Modified:
3 years, 6 months ago
Reviewers:
Theresa
CC:
chromium-reviews, browser-components-watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Send microsecond resolution timestamps to Java history page so they can be sent back. When an entry on the history page is deleted, we create history deletion directives that are sent through sync. These are required to support offline history deletions, and make sure these are properly propagated. However, these deletion directives rely on exact matches in timestamps, which are in microseconds since the epoch. The History page on Android converted microsecond timestamps to millisecond timestamps for Java compatibility, but when these timestamps were handed to the logic that created history deletion directives, they were now slightly off. This change simply plumbs through microsecond timestamps through the java code and back. BUG=729020 Review-Url: https://codereview.chromium.org/2935783002 Cr-Commit-Position: refs/heads/master@{#478756} Committed: https://chromium.googlesource.com/chromium/src/+/209633050f6d05fff54e8dcd2195743858b33125

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updates for twellington@ #

Messages

Total messages: 19 (13 generated)
skym
PTAL
3 years, 6 months ago (2017-06-12 17:40:57 UTC) #5
Theresa
https://codereview.chromium.org/2935783002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java File chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java (right): https://codereview.chromium.org/2935783002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java#newcode37 chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java:37: long[] nativeTimestamps, boolean blockedVisit) { history/StubbedHistoryProvider.java and history/BrowsingHistoryBridge.java construct ...
3 years, 6 months ago (2017-06-12 18:23:21 UTC) #8
skym
Updates for twellington@ https://codereview.chromium.org/2935783002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java File chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java (right): https://codereview.chromium.org/2935783002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java#newcode37 chrome/android/java/src/org/chromium/chrome/browser/history/HistoryItem.java:37: long[] nativeTimestamps, boolean blockedVisit) { On ...
3 years, 6 months ago (2017-06-12 19:45:13 UTC) #11
Theresa
lgtm Thank you for making this change!
3 years, 6 months ago (2017-06-12 20:03:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2935783002/20001
3 years, 6 months ago (2017-06-12 20:49:34 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 20:55:19 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/209633050f6d05fff54e8dcd2195...

Powered by Google App Engine
This is Rietveld 408576698