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

Issue 2798613002: [Sync] Store only latest versions of invalidations in DelayedInvalidationsController (Closed)

Created:
3 years, 8 months ago by pavely
Modified:
3 years, 8 months ago
Reviewers:
nyquist
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Store only latest versions of invalidations in DelayedInvalidationsController DelayedInvalidationsController stores all invalidations that come while Chrome is backgrounded. The list of invalidations can grow arbitrarily long even though only highest versions of invalidations for each object are needed. In this change I'm making DelayedInvalidationsController discard lower versions of invalidations when receiving new invalidation. BUG=705765 R=nyquist@chromium.org Review-Url: https://codereview.chromium.org/2798613002 Cr-Commit-Position: refs/heads/master@{#463052} Committed: https://chromium.googlesource.com/chromium/src/+/e3e4a4e437e837f6696861741dcde15693529b50

Patch Set 1 #

Patch Set 2 : Fix string comparison #

Total comments: 4

Patch Set 3 : Address comments #

Messages

Total messages: 31 (17 generated)
pavely
Tommy, PTAL. I don't regularly write in Java, there could be some horrible blunders here.
3 years, 8 months ago (2017-04-04 17:09:27 UTC) #5
nyquist
https://codereview.chromium.org/2798613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java File chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java (right): https://codereview.chromium.org/2798613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java#newcode116 chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java:116: editor.putStringSet(DELAYED_INVALIDATIONS, invalidateAllTypes ? null : invals); If we write ...
3 years, 8 months ago (2017-04-07 00:01:08 UTC) #8
pavely
https://codereview.chromium.org/2798613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java File chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java (right): https://codereview.chromium.org/2798613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java#newcode116 chrome/android/java/src/org/chromium/chrome/browser/invalidation/DelayedInvalidationsController.java:116: editor.putStringSet(DELAYED_INVALIDATIONS, invalidateAllTypes ? null : invals); On 2017/04/07 00:01:08, ...
3 years, 8 months ago (2017-04-07 17:58:32 UTC) #9
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/2798613002/40001
3 years, 8 months ago (2017-04-07 17:59:19 UTC) #11
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-07 17:59:20 UTC) #13
nyquist
awesome! lgtm!
3 years, 8 months ago (2017-04-07 18:51:32 UTC) #14
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/2798613002/40001
3 years, 8 months ago (2017-04-07 19:49:36 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/405787)
3 years, 8 months ago (2017-04-07 19:58:39 UTC) #18
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/2798613002/40001
3 years, 8 months ago (2017-04-07 20:16:12 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/405831)
3 years, 8 months ago (2017-04-07 20:26:11 UTC) #22
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/2798613002/40001
3 years, 8 months ago (2017-04-07 22:06:46 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/405963)
3 years, 8 months ago (2017-04-07 22:18:32 UTC) #26
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/2798613002/40001
3 years, 8 months ago (2017-04-07 23:34:41 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 23:41:52 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e3e4a4e437e837f6696861741dcd...

Powered by Google App Engine
This is Rietveld 408576698