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

Issue 10826156: Plumb invalidations from Tango to the extensions code for the Push Messaging API. (Closed)

Created:
8 years, 4 months ago by dcheng
Modified:
8 years, 4 months ago
CC:
chromium-reviews, akalin, petewil, Dmitry Titov
Visibility:
Public.

Description

Plumb invalidations from Tango to the extensions code for the Push Messaging API. BUG=139661, 139663 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152877

Patch Set 1 #

Patch Set 2 : Checkpoint #

Patch Set 3 : Lint #

Patch Set 4 : Shutdown plumbing #

Patch Set 5 : snapshot #

Patch Set 6 : . #

Patch Set 7 : pushMessaging permission #

Patch Set 8 : snapshot #

Patch Set 9 : . #

Patch Set 10 : snapshot #

Total comments: 2

Patch Set 11 : . #

Patch Set 12 : Alphabetize #

Patch Set 13 : Fix sync_integration_tests #

Patch Set 14 : Use PassAs<T> instead of Pass #

Patch Set 15 : Fixes (hopefully) #

Patch Set 16 : Fix gmock and maybe Android build #

Total comments: 38

Patch Set 17 : Address comments #

Patch Set 18 : Make pushMessaging non-optional #

Total comments: 20

Patch Set 19 : Comments+tests #

Patch Set 20 : Minor cleanup #

Patch Set 21 : Bad comment #

Total comments: 2

Patch Set 22 : Delimiter + restart test #

Total comments: 42

Patch Set 23 : Whee #

Total comments: 4

Patch Set 24 : Fix comment #

Total comments: 1

Patch Set 25 : Check components.size() #

Patch Set 26 : Merge to ToT #

Total comments: 2

Patch Set 27 : Comment #

Patch Set 28 : Fix svn props? #

Patch Set 29 : Copyright header #

Patch Set 30 : Fix Android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+730 lines, -52 lines) Patch
A chrome/browser/extensions/api/push_messaging/DEPS View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
D chrome/browser/extensions/api/push_messaging/invalidation_handler_observer.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +28 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +87 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +65 lines, -4 lines 0 comments Download
A chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 28 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 28 1 chunk +155 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +8 lines, -6 lines 0 comments Download
A chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 28 1 chunk +197 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_mapper.h View 1 2 3 4 5 6 7 28 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/sync/invalidation_frontend.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 28 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +10 lines, -5 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 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +5 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/api_permission.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/push_messaging/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/push_messaging/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 31 (0 generated)
dcheng
Mostly ready, with the unfortunate problem that it causes all sync_integration_tests to fail. =) +munjal ...
8 years, 4 months ago (2012-08-09 20:43:53 UTC) #1
akalin
overall, this looks good. I'd like to take another look after you rebase off my ...
8 years, 4 months ago (2012-08-10 23:07:10 UTC) #2
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10826156/diff/14016/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc File chrome/browser/extensions/api/push_messaging/push_messaging_api.cc (right): http://codereview.chromium.org/10826156/diff/14016/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc#newcode101 chrome/browser/extensions/api/push_messaging/push_messaging_api.cc:101: case chrome::NOTIFICATION_EXTENSION_UNLOADED: { There's also NOTIFICATION_EXTENSION_PERMISSIONS_UPDATED (when permissions are ...
8 years, 4 months ago (2012-08-11 00:47:26 UTC) #3
Pete Williamson
I'm still getting up to speed on the Chromium style guidelines, feel free to ignore ...
8 years, 4 months ago (2012-08-13 18:24:09 UTC) #4
dcheng
http://codereview.chromium.org/10826156/diff/14016/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc File chrome/browser/extensions/api/push_messaging/push_messaging_api.cc (right): http://codereview.chromium.org/10826156/diff/14016/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc#newcode38 chrome/browser/extensions/api/push_messaging/push_messaging_api.cc:38: On 2012/08/13 18:24:09, petewil1 wrote: > Might be good ...
8 years, 4 months ago (2012-08-13 20:44:14 UTC) #5
Munjal (Google)
Apart from teh comments below, I was also thinking if there is a way to ...
8 years, 4 months ago (2012-08-14 18:56:37 UTC) #6
dcheng
There are future plans to decouple invalidations from ProfileSyncService. For now, that's the interface though ...
8 years, 4 months ago (2012-08-14 21:39:58 UTC) #7
dcheng
Hello all, Please take another look. I've added a new browser test. I've also talked ...
8 years, 4 months ago (2012-08-16 19:55:07 UTC) #8
Munjal (Google)
LGTM with nits and optional suggestions you can do in another patch. http://codereview.chromium.org/10826156/diff/6006/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h File chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h ...
8 years, 4 months ago (2012-08-20 19:26:00 UTC) #9
akalin
mostly nits, but I thought of a better name for InvalidationService http://codereview.chromium.org/10826156/diff/13013/chrome/browser/extensions/api/push_messaging/push_messaging_api.h File chrome/browser/extensions/api/push_messaging/push_messaging_api.h (left): ...
8 years, 4 months ago (2012-08-20 20:35:01 UTC) #10
dcheng
Addressed all the comments... I think. http://codereview.chromium.org/10826156/diff/6006/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h File chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h (right): http://codereview.chromium.org/10826156/diff/6006/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h#newcode48 chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h:48: syncer::IncomingNotificationSource source) OVERRIDE; ...
8 years, 4 months ago (2012-08-20 20:58:20 UTC) #11
Pete Williamson
http://codereview.chromium.org/10826156/diff/15029/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc File chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc (right): http://codereview.chromium.org/10826156/diff/15029/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc#newcode27 chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc:27: syncer::ObjectIdSet ExtensionIdToObjectIds(const std::string& extension_id) { Should we add unit ...
8 years, 4 months ago (2012-08-20 22:41:05 UTC) #12
dcheng
http://codereview.chromium.org/10826156/diff/15029/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc File chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc (right): http://codereview.chromium.org/10826156/diff/15029/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc#newcode27 chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc:27: syncer::ObjectIdSet ExtensionIdToObjectIds(const std::string& extension_id) { On 2012/08/20 22:41:05, Pete ...
8 years, 4 months ago (2012-08-20 22:45:28 UTC) #13
akalin
sync lgtm http://codereview.chromium.org/10826156/diff/11097/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc File chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc (right): http://codereview.chromium.org/10826156/diff/11097/chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc#newcode58 chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc:58: if (components[0] != "U") { didn't check ...
8 years, 4 months ago (2012-08-21 21:01:38 UTC) #14
Mihai Parparita -not on Chrome
LGTM
8 years, 4 months ago (2012-08-21 22:24:10 UTC) #15
dcheng
+ben for OWNERS review of gyp changes.
8 years, 4 months ago (2012-08-21 22:56:43 UTC) #16
Nico
gyp files lgtm stamp, but one question below http://codereview.chromium.org/10826156/diff/19002/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): http://codereview.chromium.org/10826156/diff/19002/chrome/chrome_browser_extensions.gypi#newcode609 chrome/chrome_browser_extensions.gypi:609: # ...
8 years, 4 months ago (2012-08-22 00:52:02 UTC) #17
dcheng
http://codereview.chromium.org/10826156/diff/19002/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): http://codereview.chromium.org/10826156/diff/19002/chrome/chrome_browser_extensions.gypi#newcode609 chrome/chrome_browser_extensions.gypi:609: # less intertwined in the main codebase. On 2012/08/22 ...
8 years, 4 months ago (2012-08-22 00:59:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10826156/22015
8 years, 4 months ago (2012-08-22 02:35:17 UTC) #19
commit-bot: I haz the power
Failed to apply patch for chrome/test/data/extensions/api_test/push_messaging/background.js: While running svn propset svn:eol-style LF chrome/test/data/extensions/api_test/push_messaging/background.js --config-dir /b/commit-queue/subversion_config ...
8 years, 4 months ago (2012-08-22 02:35:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10826156/28001
8 years, 4 months ago (2012-08-22 05:59:04 UTC) #21
commit-bot: I haz the power
Try job failure for 10826156-28001 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 4 months ago (2012-08-22 06:23:54 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10826156/32001
8 years, 4 months ago (2012-08-22 06:30:50 UTC) #23
commit-bot: I haz the power
Try job failure for 10826156-32001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-22 08:20:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10826156/32001
8 years, 4 months ago (2012-08-22 11:46:40 UTC) #25
commit-bot: I haz the power
Try job failure for 10826156-32001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-22 14:12:27 UTC) #26
Ben Goodger (Google)
gyp lgtm
8 years, 4 months ago (2012-08-22 16:05:12 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10826156/32001
8 years, 4 months ago (2012-08-22 17:32:30 UTC) #28
commit-bot: I haz the power
Try job failure for 10826156-32001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-22 18:40:31 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10826156/32001
8 years, 4 months ago (2012-08-22 21:09:38 UTC) #30
commit-bot: I haz the power
8 years, 4 months ago (2012-08-22 23:55:17 UTC) #31
Change committed as 152877

Powered by Google App Engine
This is Rietveld 408576698