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

Issue 22470006: Process incoming updates and deletes properly. (Closed)

Created:
7 years, 4 months ago by Pete Williamson
Modified:
7 years, 4 months ago
Reviewers:
Nicolas Zea, dewittj
CC:
chromium-reviews
Visibility:
Public.

Description

Process incoming updates and deletes properly. There are two paths into synced notifications - MergeDataAndStartSyncing, and ProcessSyncChanges. We had been handling updates and deletes on the MergeDataAndStartSyncing (catch up pull path) case, but not in the ProcessSyncChanges (push path). This change adds the missing code for the push path and some unit tests. We also refactor slightly the Display method, replacing calls with "UpdateInMessageCenter", which will display or remove as needed. BUG=270175 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216831

Patch Set 1 #

Total comments: 2

Patch Set 2 : updates and deletes: do merging #

Total comments: 8

Patch Set 3 : updates and deletes: CR feedback from DewittJ and Zea #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -15 lines) Patch
M chrome/browser/notifications/sync_notifier/chrome_notifier_service.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc View 1 2 8 chunks +60 lines, -15 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 1 chunk +97 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Pete Williamson
7 years, 4 months ago (2013-08-08 18:59:19 UTC) #1
dewittj
https://codereview.chromium.org/22470006/diff/1/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/22470006/diff/1/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#newcode195 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:195: if (found == NULL) { Unless I understand the ...
7 years, 4 months ago (2013-08-08 22:15:32 UTC) #2
Pete Williamson
https://codereview.chromium.org/22470006/diff/1/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/22470006/diff/1/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#newcode195 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:195: if (found == NULL) { On 2013/08/08 22:15:32, dewittj ...
7 years, 4 months ago (2013-08-09 01:27:22 UTC) #3
dewittj
https://codereview.chromium.org/22470006/diff/6001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/22470006/diff/6001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#newcode223 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:223: NOTREACHED(); You don't handle ACTION_INVALID, yet you have a ...
7 years, 4 months ago (2013-08-09 19:40:28 UTC) #4
Nicolas Zea
https://codereview.chromium.org/22470006/diff/6001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/22470006/diff/6001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#newcode208 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:208: break; it seems to me this is the same ...
7 years, 4 months ago (2013-08-09 20:04:13 UTC) #5
Pete Williamson
CR fixes per DewittJ and Zea https://codereview.chromium.org/22470006/diff/6001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc File chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/22470006/diff/6001/chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc#newcode208 chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc:208: break; On 2013/08/09 ...
7 years, 4 months ago (2013-08-09 21:00:18 UTC) #6
dewittj
lgtm
7 years, 4 months ago (2013-08-09 21:17:58 UTC) #7
Nicolas Zea
lgtm
7 years, 4 months ago (2013-08-09 21:33:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/22470006/18001
7 years, 4 months ago (2013-08-09 21:46:54 UTC) #9
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=186123
7 years, 4 months ago (2013-08-10 04:54:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/22470006/18001
7 years, 4 months ago (2013-08-10 04:59:48 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-10 08:33:07 UTC) #12
Message was sent while issue was closed.
Change committed as 216831

Powered by Google App Engine
This is Rietveld 408576698