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

Issue 1231613005: Hook up the Push API with GCM's new ability to own encryption keys. (Closed)

Created:
5 years, 5 months ago by Peter Beverloo
Modified:
5 years, 4 months ago
CC:
chromium-reviews, mvanouwerkerk+watch_chromium.org, peter+watch_chromium.org, johnme+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@gcm-encryption
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Hook up the Push API with GCM's new ability to own encryption keys. This CL finishes implementing propagation of the "curve25519dh" attribute of the PushSubscription interface of the Push API. The public key will be provided by the GCM Driver, which internally uses the (new) GCMKeyStore. Encrypted messages cannot yet be received by GCM - that work remains. The functionality introduced in this CL is also still guarded behind the "--enable-push-message-payload" command line flag. BUG=486040 Committed: https://crrev.com/bfa736ea015575cff0b21d4249ceb9d45d4df254 Cr-Commit-Position: refs/heads/master@{#340697}

Patch Set 1 #

Patch Set 2 : #

Total comments: 24

Patch Set 3 : #

Total comments: 4

Patch Set 4 : comments + win fix #

Total comments: 12

Patch Set 5 : test fix #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -45 lines) Patch
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.h View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 2 3 4 5 6 chunks +81 lines, -22 lines 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/test/data/push_messaging/push_test.js View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M components/gcm_driver.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M components/gcm_driver/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver/crypto/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
A components/gcm_driver/crypto/gcm_encryption_provider.h View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A components/gcm_driver/crypto/gcm_encryption_provider.cc View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
M components/gcm_driver/crypto/gcm_key_store.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M components/gcm_driver/crypto/gcm_key_store.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M components/gcm_driver/crypto/gcm_key_store_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_driver.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M components/gcm_driver/fake_gcm_driver.cc View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver.h View 1 2 4 chunks +21 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver.cc View 1 2 3 4 3 chunks +15 lines, -3 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.h View 1 2 3 4 5 6 1 chunk +9 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_android.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/common/push_messaging_status.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
Peter Beverloo
Hi guys - This is not ready for full review yet, but I'd love some ...
5 years, 5 months ago (2015-07-16 18:40:01 UTC) #3
Peter Beverloo
On 2015/07/16 18:40:01, Peter Beverloo wrote: > Hi guys - > > This is not ...
5 years, 5 months ago (2015-07-17 15:56:34 UTC) #5
jianli
https://codereview.chromium.org/1231613005/diff/60001/chrome/browser/push_messaging/push_messaging_service_impl.h File chrome/browser/push_messaging/push_messaging_service_impl.h (right): https://codereview.chromium.org/1231613005/diff/60001/chrome/browser/push_messaging/push_messaging_service_impl.h#newcode189 chrome/browser/push_messaging/push_messaging_service_impl.h:189: bool EnableMessagePayloads() const; EnableMessagePayloads sounds more like an action. ...
5 years, 5 months ago (2015-07-17 20:55:21 UTC) #6
Peter Beverloo
Thank you! This should now be ready for formal review. https://codereview.chromium.org/1231613005/diff/60001/chrome/browser/push_messaging/push_messaging_service_impl.h File chrome/browser/push_messaging/push_messaging_service_impl.h (right): https://codereview.chromium.org/1231613005/diff/60001/chrome/browser/push_messaging/push_messaging_service_impl.h#newcode189 ...
5 years, 5 months ago (2015-07-20 17:55:54 UTC) #8
jianli
lgtm https://codereview.chromium.org/1231613005/diff/100001/components/gcm_driver/fake_gcm_driver.h File components/gcm_driver/fake_gcm_driver.h (right): https://codereview.chromium.org/1231613005/diff/100001/components/gcm_driver/fake_gcm_driver.h#newcode17 components/gcm_driver/fake_gcm_driver.h:17: FakeGCMDriver( nit: add explicit https://codereview.chromium.org/1231613005/diff/100001/components/gcm_driver/gcm_driver.cc File components/gcm_driver/gcm_driver.cc (right): ...
5 years, 5 months ago (2015-07-20 21:36:33 UTC) #9
Peter Beverloo
+thakis for /chrome/browser/BUILD.gn addition (analogous to gcm_driver/instance_id). https://codereview.chromium.org/1231613005/diff/100001/components/gcm_driver/fake_gcm_driver.h File components/gcm_driver/fake_gcm_driver.h (right): https://codereview.chromium.org/1231613005/diff/100001/components/gcm_driver/fake_gcm_driver.h#newcode17 components/gcm_driver/fake_gcm_driver.h:17: FakeGCMDriver( On ...
5 years, 5 months ago (2015-07-21 14:11:30 UTC) #11
Nico
chrome build files lgtm
5 years, 5 months ago (2015-07-21 15:03:07 UTC) #12
johnme
chrome/browser/push_messaging/* and chrome/test/data/push_messaging/push_test.js lgtm once you make sure we always call DecreasePushSubscriptionCount (and with a ...
5 years, 5 months ago (2015-07-21 15:37:26 UTC) #13
Peter Beverloo
All done, thanks! :) +avi for a silly mistake I made in push_messaging_status.h in a ...
5 years, 5 months ago (2015-07-21 15:51:08 UTC) #15
Avi (use Gerrit)
lgtm yeeeeerp
5 years, 5 months ago (2015-07-21 17:16:46 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231613005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1231613005/160001
5 years, 5 months ago (2015-07-24 10:28:11 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-24 12:29:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231613005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1231613005/160001
5 years, 5 months ago (2015-07-24 12:30:21 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years, 5 months ago (2015-07-24 12:35:00 UTC) #24
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/23695aaa72c3c7c5176456c5ca4d3f7617be42fd Cr-Commit-Position: refs/heads/master@{#340263}
5 years, 5 months ago (2015-07-24 12:35:33 UTC) #25
Peter Beverloo
A revert of this CL (patchset #6 id:160001) has been created in https://codereview.chromium.org/1259613002/ by peter@chromium.org. ...
5 years, 5 months ago (2015-07-24 13:15:39 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1231613005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1231613005/180001
5 years, 4 months ago (2015-07-28 16:07:35 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:180001)
5 years, 4 months ago (2015-07-28 16:20:02 UTC) #30
commit-bot: I haz the power
5 years, 4 months ago (2015-07-28 16:20:49 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/bfa736ea015575cff0b21d4249ceb9d45d4df254
Cr-Commit-Position: refs/heads/master@{#340697}

Powered by Google App Engine
This is Rietveld 408576698