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

Issue 278493002: Split GCMDriver into platform-specific implementations (Closed)

Created:
6 years, 7 months ago by johnme
Modified:
6 years, 6 months ago
Reviewers:
Finnur, jianli, pavely, fgorski
CC:
chromium-reviews, Peter Beverloo
Visibility:
Public.

Description

This patch splits GCMDriver into an abstract interface and an implementation thereof for desktop platforms. It also provides a stub Android implementation, to be fleshed out in subsequent patches. BUG=350384 TEST=existing tests TBR=pavely@chromium.org for updates to invalidation tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273977

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed Filip and Jian's initial comments #

Patch Set 3 : Rebase, and add FakeGCMDriver for unit tests #

Total comments: 14

Patch Set 4 : Addressed jianli's review comments #

Total comments: 2

Patch Set 5 : Addressed jianli's last few review comments #

Patch Set 6 : Rebase #

Patch Set 7 : Fix trybots #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -2137 lines) Patch
M chrome/browser/invalidation/gcm_invalidation_bridge_unittest.cc View 1 2 4 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/invalidation/ticl_invalidation_service_unittest.cc View 1 2 4 chunks +2 lines, -16 lines 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.cc View 1 2 5 chunks +14 lines, -26 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 5 3 chunks +16 lines, -15 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M components/gcm_driver.gypi View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
A components/gcm_driver/fake_gcm_driver.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A components/gcm_driver/fake_gcm_driver.cc View 1 2 3 4 5 6 1 chunk +70 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_driver.h View 1 2 3 4 6 chunks +22 lines, -136 lines 0 comments Download
M components/gcm_driver/gcm_driver.cc View 1 2 3 4 1 chunk +2 lines, -779 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.h View 1 2 3 4 5 6 1 chunk +35 lines, -3 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.cc View 1 2 3 4 5 6 2 chunks +62 lines, -1 line 0 comments Download
A + components/gcm_driver/gcm_driver_desktop.h View 1 2 3 6 chunks +32 lines, -94 lines 0 comments Download
A + components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 35 chunks +147 lines, -159 lines 2 comments Download
A + components/gcm_driver/gcm_driver_desktop_unittest.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_driver_unittest.cc View 1 2 3 4 1 chunk +0 lines, -900 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
johnme
Hi Jian, I've been talking with Filip about how best to provide an Android backend ...
6 years, 7 months ago (2014-05-07 18:36:36 UTC) #1
johnme
6 years, 7 months ago (2014-05-07 18:37:05 UTC) #2
fgorski
John it looks OK, but I'd like to hear what Jian Li thinks. From my ...
6 years, 7 months ago (2014-05-07 18:50:13 UTC) #3
jianli
One general question before I could make more comments. For GCM Chrome on Android, do ...
6 years, 7 months ago (2014-05-08 00:26:48 UTC) #4
johnme
Thanks for the reviews! On 2014/05/07 18:50:13, fgorski wrote: > John it looks OK, but ...
6 years, 7 months ago (2014-05-08 16:08:02 UTC) #5
johnme
Hi Jian & Filip, I've rebased (well, rewritten!) this to take into account the various ...
6 years, 6 months ago (2014-05-28 15:46:22 UTC) #6
jianli
https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/gcm_driver.h File components/gcm_driver/gcm_driver.h (right): https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/gcm_driver.h#newcode38 components/gcm_driver/gcm_driver.h:38: virtual void Enable() = 0; Move these 2 methods ...
6 years, 6 months ago (2014-05-29 00:54:53 UTC) #7
jianli
https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/fake_gcm_driver.h File components/gcm_driver/fake_gcm_driver.h (right): https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/fake_gcm_driver.h#newcode14 components/gcm_driver/fake_gcm_driver.h:14: // A do-nothing implementation of GCMDriver. nit: comment is ...
6 years, 6 months ago (2014-05-29 07:34:03 UTC) #8
johnme
Addressed Jian's review comments. Thanks :) https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/fake_gcm_driver.h File components/gcm_driver/fake_gcm_driver.h (right): https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/fake_gcm_driver.h#newcode14 components/gcm_driver/fake_gcm_driver.h:14: // A do-nothing ...
6 years, 6 months ago (2014-05-29 17:40:55 UTC) #9
jianli
lgtm https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/gcm_driver.h File components/gcm_driver/gcm_driver.h (right): https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/gcm_driver.h#newcode107 components/gcm_driver/gcm_driver.h:107: base::ThreadChecker thread_checker_; On 2014/05/29 17:40:55, johnme wrote: > ...
6 years, 6 months ago (2014-05-30 06:30:22 UTC) #10
johnme
Addressed Jian's review comments - thanks :) https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/gcm_driver.h File components/gcm_driver/gcm_driver.h (right): https://codereview.chromium.org/278493002/diff/40001/components/gcm_driver/gcm_driver.h#newcode107 components/gcm_driver/gcm_driver.h:107: base::ThreadChecker thread_checker_; ...
6 years, 6 months ago (2014-05-30 10:26:45 UTC) #11
johnme
The CQ bit was checked by johnme@chromium.org
6 years, 6 months ago (2014-05-30 10:37:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/johnme@chromium.org/278493002/80001
6 years, 6 months ago (2014-05-30 10:38:42 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-05-30 11:55:47 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 11:57:52 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/34034)
6 years, 6 months ago (2014-05-30 11:57:52 UTC) #16
johnme
The CQ bit was checked by johnme@chromium.org
6 years, 6 months ago (2014-05-30 14:52:02 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/johnme@chromium.org/278493002/100001
6 years, 6 months ago (2014-05-30 14:53:11 UTC) #18
johnme
The CQ bit was checked by johnme@chromium.org
6 years, 6 months ago (2014-05-30 18:14:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/johnme@chromium.org/278493002/120001
6 years, 6 months ago (2014-05-30 18:16:10 UTC) #20
commit-bot: I haz the power
Change committed as 273977
6 years, 6 months ago (2014-05-31 01:21:14 UTC) #21
Finnur
Drive-by post-commit comments... :) https://codereview.chromium.org/278493002/diff/120001/components/gcm_driver/gcm_driver_desktop.cc File components/gcm_driver/gcm_driver_desktop.cc (right): https://codereview.chromium.org/278493002/diff/120001/components/gcm_driver/gcm_driver_desktop.cc#newcode750 components/gcm_driver/gcm_driver_desktop.cc:750: GCMClient::IncomingMessage message) { Probably not ...
6 years, 6 months ago (2014-06-02 21:41:45 UTC) #22
jianli
6 years, 6 months ago (2014-06-02 23:45:20 UTC) #23
Thanks for noticing this. The fix (
https://codereview.chromium.org/301243019/) is in CQ.


On Mon, Jun 2, 2014 at 2:41 PM, <finnur@chromium.org> wrote:

> Drive-by post-commit comments... :)
>
>
> https://codereview.chromium.org/278493002/diff/120001/
> components/gcm_driver/gcm_driver_desktop.cc
> File components/gcm_driver/gcm_driver_desktop.cc (right):
>
> https://codereview.chromium.org/278493002/diff/120001/
> components/gcm_driver/gcm_driver_desktop.cc#newcode750
> components/gcm_driver/gcm_driver_desktop.cc:750:
> GCMClient::IncomingMessage message) {
> Probably not your fault, but could this be passed by ref?
>
> https://codereview.chromium.org/278493002/diff/120001/
> components/gcm_driver/gcm_driver_desktop.cc#newcode793
> components/gcm_driver/gcm_driver_desktop.cc:793:
> GCMClient::GCMStatistics stats) {
> Same here
>
> https://codereview.chromium.org/278493002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698