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

Issue 11745024: Synced Notification Sync Change Processor (Closed)

Created:
7 years, 11 months ago by Pete Williamson
Modified:
7 years, 10 months ago
Reviewers:
kevinliu, Nico, Nicolas Zea, Ben Goodger (Google), dcheng
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin, tim (not reviewing)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Synced Notification Sync Change Processor This change is the first of several to process changes from sync of the "Synced Notifications" data type. It defines the SyncedNotification type more fully in synced_notification_specifics.proto, and implements the incoming interfaces needed to handle the data. This change handles notifications coming in from the sync channel. These notifications will eventually call into the C++ backend supporting the Desktop Notification API (doc here: https://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/proposed-changes/apis-under-development/desktop-notification-api ) It is based closely on the change list for history delete directives: https://chromiumcodereview.appspot.com/10855037 BUG=168212 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181825

Patch Set 1 #

Total comments: 78

Patch Set 2 : SyncedNotifications - first round of CR comment fixes. #

Total comments: 142

Patch Set 3 : Synced Notifications - CR changes per Zea and DCheng #

Total comments: 10

Patch Set 4 : Synced Notifications Sync Change Processor with CR fixes per DCheng #

Total comments: 10

Patch Set 5 : Synced Notifications Change Processor - CR #

Total comments: 27

Patch Set 6 : Synced Notifications Change Processor more CR changes per DCheng #

Patch Set 7 : Lint fixes #

Total comments: 27

Patch Set 8 : Synced #

Total comments: 4

Patch Set 9 : Synced Notifications Change Processor CR fixes per Zea #

Total comments: 3

Patch Set 10 : SyncedNotifications - fix conflicts with merge from master #

Patch Set 11 : Synced Notifications Change Processor - fix trybot issues #

Patch Set 12 : Synced Notification Change Processor with more try fixes #

Patch Set 13 : Synced Notifications Change Processor - more trybot issues #

Patch Set 14 : Synced Notification Change Processor - even more trybot fixes #

Patch Set 15 : Synced Notification Change Processor - android disable #

Patch Set 16 : Synced Notification Change Processor - more android #

Patch Set 17 : Synded Notifications Change Processor - more adnroid disabling #

Patch Set 18 : Synced Notifications Change Processor - more android disabling #

Patch Set 19 : Synced Notifications Change Processor - more android disabling #

Patch Set 20 : Synced Notification Change Processor - remove unused header #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1680 lines, -1 line) Patch
A chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/chrome_notifier_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/chrome_notifier_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/chrome_notifier_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +260 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +389 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/synced_notification.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/synced_notification.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +305 lines, -0 lines 0 comments Download
A chrome/browser/notifications/sync_notifier/synced_notification_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +194 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +27 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
A sync/protocol/synced_notification_data.proto View 1 2 3 4 5 6 7 1 chunk +66 lines, -0 lines 0 comments Download
A sync/protocol/synced_notification_render.proto View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
M sync/protocol/synced_notification_specifics.proto View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M sync/sync_proto.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
Pete Williamson
Nico - Could you please look at the files under chrome/browser/notifier (they are all new) ...
7 years, 11 months ago (2013-01-04 02:02:28 UTC) #1
Nicolas Zea
Some comments. https://codereview.chromium.org/11745024/diff/1/chrome/browser/notifier/chrome_notifier_service.cc File chrome/browser/notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/11745024/diff/1/chrome/browser/notifier/chrome_notifier_service.cc#newcode29 chrome/browser/notifier/chrome_notifier_service.cc:29: // to worry about re-entrancy. Re-entrancy doesn't ...
7 years, 11 months ago (2013-01-05 01:18:48 UTC) #2
dcheng
https://codereview.chromium.org/11745024/diff/1/chrome/browser/notifier/chrome_notifier_service.cc File chrome/browser/notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/11745024/diff/1/chrome/browser/notifier/chrome_notifier_service.cc#newcode16 chrome/browser/notifier/chrome_notifier_service.cc:16: using namespace sync_pb; It's much more common to just ...
7 years, 11 months ago (2013-01-07 20:42:10 UTC) #3
Pete Williamson
+KevinLiu to check the protobuf changes. Nicolas and Daniel, this should answer all your issues. ...
7 years, 11 months ago (2013-01-18 18:58:39 UTC) #4
dcheng
FYI, a really helpful tool to catch some of these consistency issues is git cl ...
7 years, 11 months ago (2013-01-18 21:56:13 UTC) #5
Nicolas Zea
https://codereview.chromium.org/11745024/diff/1/chrome/browser/notifier/synced_notification.h File chrome/browser/notifier/synced_notification.h (right): https://codereview.chromium.org/11745024/diff/1/chrome/browser/notifier/synced_notification.h#newcode16 chrome/browser/notifier/synced_notification.h:16: namespace sync_pb { On 2013/01/18 18:58:39, Pete Williamson wrote: ...
7 years, 11 months ago (2013-01-18 23:09:24 UTC) #6
Pete Williamson
This should answer all of DCheng and Zea's comments. It includes a new namespace (notifier), ...
7 years, 11 months ago (2013-01-23 01:45:55 UTC) #7
dcheng
https://codereview.chromium.org/11745024/diff/12001/chrome/browser/notifier/chrome_notifier_service.cc File chrome/browser/notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/11745024/diff/12001/chrome/browser/notifier/chrome_notifier_service.cc#newcode241 chrome/browser/notifier/chrome_notifier_service.cc:241: string16 title16 = UTF8ToWide(title); On 2013/01/23 01:45:55, Pete Williamson ...
7 years, 11 months ago (2013-01-23 18:39:43 UTC) #8
Pete Williamson
Another round of CR fixes addressing all of DCheng's most recent feedback. https://codereview.chromium.org/11745024/diff/12001/chrome/browser/notifier/chrome_notifier_service.cc File chrome/browser/notifier/chrome_notifier_service.cc ...
7 years, 11 months ago (2013-01-24 01:48:11 UTC) #9
Nicolas Zea
https://codereview.chromium.org/11745024/diff/12001/chrome/browser/notifier/synced_notification.h File chrome/browser/notifier/synced_notification.h (right): https://codereview.chromium.org/11745024/diff/12001/chrome/browser/notifier/synced_notification.h#newcode67 chrome/browser/notifier/synced_notification.h:67: // it into the contained sync entity. On 2013/01/23 ...
7 years, 11 months ago (2013-01-25 00:18:45 UTC) #10
Pete Williamson
CR changes per Zea - Changed the protobuf object names to be nicer, changed SyncedNotification ...
7 years, 11 months ago (2013-01-25 19:58:35 UTC) #11
dcheng
I still think that in Chrome, we should rename "server_data.proto" to "notification_data.proto" and "server_render.proto" to ...
7 years, 11 months ago (2013-01-25 22:23:48 UTC) #12
Pete Williamson
This should address all outstanding issues brought up by DCheng and Zea. It includes a ...
7 years, 11 months ago (2013-01-26 02:17:08 UTC) #13
dcheng
Please address the Rietveld lint warnings. You can see the results by clicking on the ...
7 years, 11 months ago (2013-01-26 02:26:33 UTC) #14
Pete Williamson
OK, this patch addresses the lint issues (except for the newlines at the end of ...
7 years, 10 months ago (2013-01-28 19:54:41 UTC) #15
dcheng
LGTM with the comments addressed. https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/chrome_notifier_service.cc File chrome/browser/notifier/chrome_notifier_service.cc (right): https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/chrome_notifier_service.cc#newcode72 chrome/browser/notifier/chrome_notifier_service.cc:72: DCHECK_GT(id.length(), static_cast<size_t>(0)); FYI: 0U ...
7 years, 10 months ago (2013-01-28 23:35:09 UTC) #16
Pete Williamson
Answered DCheng's concerns. Since there were only a few straightforward changes, I'll wait for Zea ...
7 years, 10 months ago (2013-01-29 00:11:43 UTC) #17
dcheng
https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/chrome_notifier_service.h File chrome/browser/notifier/chrome_notifier_service.h (right): https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/chrome_notifier_service.h#newcode72 chrome/browser/notifier/chrome_notifier_service.h:72: NotificationUIManager* notification_manager_; On 2013/01/29 00:11:43, Pete Williamson wrote: > ...
7 years, 10 months ago (2013-01-29 00:28:34 UTC) #18
Pete Williamson
https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/chrome_notifier_service.h File chrome/browser/notifier/chrome_notifier_service.h (right): https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/chrome_notifier_service.h#newcode72 chrome/browser/notifier/chrome_notifier_service.h:72: NotificationUIManager* notification_manager_; On 2013/01/29 00:28:34, dcheng wrote: > On ...
7 years, 10 months ago (2013-01-29 00:37:49 UTC) #19
Nicolas Zea
https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/synced_notification.h File chrome/browser/notifier/synced_notification.h (right): https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/synced_notification.h#newcode17 chrome/browser/notifier/synced_notification.h:17: #include "sync/protocol/synced_notification_specifics.pb.h" I think you can forward declare any ...
7 years, 10 months ago (2013-01-29 01:17:01 UTC) #20
dcheng
https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/synced_notification.h File chrome/browser/notifier/synced_notification.h (right): https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/synced_notification.h#newcode66 chrome/browser/notifier/synced_notification.h:66: sync_pb::CoalescedSyncedNotification_ReadState readState); Btw... I missed this, but naming (should ...
7 years, 10 months ago (2013-01-29 01:33:48 UTC) #21
Pete Williamson
This should address Zea's comments, and the remaining "lgtm" nits that DCheng had. https://codereview.chromium.org/11745024/diff/41006/chrome/browser/notifier/synced_notification.h File ...
7 years, 10 months ago (2013-01-29 02:10:37 UTC) #22
Nicolas Zea
https://codereview.chromium.org/11745024/diff/55003/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://codereview.chromium.org/11745024/diff/55003/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode229 chrome/browser/sync/profile_sync_components_factory_impl.cc:229: // Synced Notifications sync is enabled by default. enabled ...
7 years, 10 months ago (2013-01-29 21:43:34 UTC) #23
Pete Williamson
This addresses Zea@'s comments. https://codereview.chromium.org/11745024/diff/55003/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://codereview.chromium.org/11745024/diff/55003/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode229 chrome/browser/sync/profile_sync_components_factory_impl.cc:229: // Synced Notifications sync is ...
7 years, 10 months ago (2013-01-30 01:06:48 UTC) #24
Nicolas Zea
sync LGTM
7 years, 10 months ago (2013-01-30 01:21:39 UTC) #25
Nico
My only real question: Why is this in chrome/browser/notifier and not in the existing chrome/browser/notifications? ...
7 years, 10 months ago (2013-01-31 22:43:14 UTC) #26
Pete Williamson
Thakis - thanks for the review! The focus of the "notifications" directory is somewhat different ...
7 years, 10 months ago (2013-01-31 23:02:40 UTC) #27
Nico
As far as I understand, this code is for syncing notifications which are displayed by ...
7 years, 10 months ago (2013-01-31 23:28:20 UTC) #28
Nicolas Zea
On 2013/01/31 23:28:20, Nico wrote: > As far as I understand, this code is for ...
7 years, 10 months ago (2013-02-01 00:10:14 UTC) #29
petewil
c/b/notifictions/sync_notifier is OK by me if Nico approves. I originally picked c/b/notifier since similar kind ...
7 years, 10 months ago (2013-02-01 00:43:34 UTC) #30
petewil
-Akalin@, +kevinliu On Thu, Jan 31, 2013 at 4:43 PM, Pete Williamson <petewil@google.com> wrote: > ...
7 years, 10 months ago (2013-02-01 00:44:55 UTC) #31
Nico
On 2013/02/01 00:10:14, Nicolas Zea wrote: > On 2013/01/31 23:28:20, Nico wrote: > > As ...
7 years, 10 months ago (2013-02-01 00:46:50 UTC) #32
Nico
On Thu, Jan 31, 2013 at 4:46 PM, <thakis@chromium.org> wrote: > On 2013/02/01 00:10:14, Nicolas ...
7 years, 10 months ago (2013-02-01 00:47:09 UTC) #33
Nicolas Zea
On 2013/02/01 00:47:09, Nico wrote: > On Thu, Jan 31, 2013 at 4:46 PM, <mailto:thakis@chromium.org> ...
7 years, 10 months ago (2013-02-01 00:54:38 UTC) #34
Pete Williamson
I'll go ahead and move this to c/b/notifications/sync_notifier – Ben, if you don't like this ...
7 years, 10 months ago (2013-02-01 23:28:23 UTC) #35
Nico
What's up with this "notifier" suffix by the way? This is just sync for notifications, ...
7 years, 10 months ago (2013-02-01 23:32:40 UTC) #36
Pete Williamson
Zea seemed to prefer it, and I think it is more descriptive. The component is ...
7 years, 10 months ago (2013-02-01 23:59:24 UTC) #37
dcheng
On 2013/02/01 23:59:24, Pete Williamson wrote: > Zea seemed to prefer it, and I think ...
7 years, 10 months ago (2013-02-02 00:04:12 UTC) #38
Pete Williamson
Ping thakis. Now that ABarth has weighed in and the thread has died down, are ...
7 years, 10 months ago (2013-02-07 00:07:32 UTC) #39
Nico
Can you add a link to https://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/proposed-changes/apis-under-development/desktop-notification-api to the CL description and mention that this ...
7 years, 10 months ago (2013-02-07 00:17:58 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/11745024/69001
7 years, 10 months ago (2013-02-08 18:52:18 UTC) #41
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-08 19:18:07 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/11745024/70051
7 years, 10 months ago (2013-02-11 22:23:29 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/petewil@chromium.org/11745024/77043
7 years, 10 months ago (2013-02-12 00:13:04 UTC) #44
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 02:18:53 UTC) #45
Message was sent while issue was closed.
Change committed as 181825

Powered by Google App Engine
This is Rietveld 408576698