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

Issue 286213003: Make GCMProfileService own GCMDriver, instead of deriving from it (Closed)

Created:
6 years, 7 months ago by jianli
Modified:
6 years, 7 months ago
Reviewers:
Nicolas Zea, fgorski
CC:
chromium-reviews, tim+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org, haitaol+watch_chromium.org, extensions-reviews_chromium.org, johnme
Visibility:
Public.

Description

Make GCMProfileService own GCMDriver, instead of deriving from it Also remove several tests related to testing on neutral channel signals. Replacement tests will be added when we switch to starting and stopping GCM on demand in the future patch. BUG=356716 TEST=tests updated TBR=kalman@chromium.org,pavely@chromium.org,arv@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271832

Patch Set 1 #

Patch Set 2 : Sync #

Total comments: 6

Patch Set 3 : Sync #

Patch Set 4 : Address feedback #

Patch Set 5 : Fix trybots #

Patch Set 6 : Fix trybots #

Total comments: 19

Patch Set 7 : Address more feedback #

Patch Set 8 : Fix trybots #

Patch Set 9 : Fix android trybot #

Patch Set 10 : Workaround to avoid potential build break #

Patch Set 11 : Sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -483 lines) Patch
M chrome/browser/extensions/api/gcm/gcm_api.h View 4 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_api.cc View 1 2 3 4 5 6 9 chunks +10 lines, -23 lines 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_apitest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_gcm_app_handler.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_gcm_app_handler.cc View 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_gcm_app_handler_unittest.cc View 1 2 3 4 5 6 7 5 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/invalidation/gcm_invalidation_bridge.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/invalidation/gcm_invalidation_bridge_unittest.cc View 5 chunks +10 lines, -20 lines 0 comments Download
M chrome/browser/invalidation/invalidation_service_factory.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/invalidation/ticl_invalidation_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/invalidation/ticl_invalidation_service_unittest.cc View 1 2 3 4 chunks +5 lines, -27 lines 0 comments Download
M chrome/browser/invalidation/ticl_profile_settings_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.h View 1 2 3 4 5 6 3 chunks +9 lines, -16 lines 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.cc View 1 2 3 4 5 6 3 chunks +99 lines, -42 lines 0 comments Download
M chrome/browser/services/gcm/gcm_driver.h View 1 2 3 4 5 6 7 chunks +32 lines, -25 lines 0 comments Download
M chrome/browser/services/gcm/gcm_driver.cc View 1 2 3 4 5 6 12 chunks +57 lines, -38 lines 0 comments Download
M chrome/browser/services/gcm/gcm_driver_unittest.cc View 1 2 3 18 chunks +94 lines, -176 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -10 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +41 lines, -21 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service_factory.cc View 1 2 3 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service_unittest.cc View 1 2 3 4 5 6 9 chunks +54 lines, -38 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/gcm_internals_ui.cc View 4 chunks +7 lines, -6 lines 0 comments Download
M google_apis/gcm/gcm_client.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sync/notifier/gcm_network_channel.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
jianli
6 years, 7 months ago (2014-05-15 22:02:05 UTC) #1
fgorski
Mostly looks good. https://codereview.chromium.org/286213003/diff/20001/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc File chrome/browser/invalidation/ticl_invalidation_service_unittest.cc (right): https://codereview.chromium.org/286213003/diff/20001/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc#newcode113 chrome/browser/invalidation/ticl_invalidation_service_unittest.cc:113: scoped_ptr<gcm::GCMDriver> gcm_service_; gcm_driver_ https://codereview.chromium.org/286213003/diff/20001/chrome/browser/invalidation/ticl_profile_settings_provider.cc File chrome/browser/invalidation/ticl_profile_settings_provider.cc ...
6 years, 7 months ago (2014-05-19 17:33:32 UTC) #2
jianli
https://codereview.chromium.org/286213003/diff/20001/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc File chrome/browser/invalidation/ticl_invalidation_service_unittest.cc (right): https://codereview.chromium.org/286213003/diff/20001/chrome/browser/invalidation/ticl_invalidation_service_unittest.cc#newcode113 chrome/browser/invalidation/ticl_invalidation_service_unittest.cc:113: scoped_ptr<gcm::GCMDriver> gcm_service_; On 2014/05/19 17:33:32, fgorski wrote: > gcm_driver_ ...
6 years, 7 months ago (2014-05-19 18:37:19 UTC) #3
fgorski
lgtm with nits https://codereview.chromium.org/286213003/diff/100001/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/286213003/diff/100001/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode33 chrome/browser/extensions/api/gcm/gcm_api.cc:33: const char kGCMDisabled[] = "GCM was ...
6 years, 7 months ago (2014-05-19 20:37:08 UTC) #4
Nicolas Zea
https://codereview.chromium.org/286213003/diff/100001/chrome/browser/services/gcm/fake_gcm_profile_service.h File chrome/browser/services/gcm/fake_gcm_profile_service.h (right): https://codereview.chromium.org/286213003/diff/100001/chrome/browser/services/gcm/fake_gcm_profile_service.h#newcode9 chrome/browser/services/gcm/fake_gcm_profile_service.h:9: #include <vector> nit: newline after https://codereview.chromium.org/286213003/diff/100001/chrome/browser/services/gcm/gcm_driver.h File chrome/browser/services/gcm/gcm_driver.h (right): ...
6 years, 7 months ago (2014-05-19 21:04:06 UTC) #5
jianli
https://codereview.chromium.org/286213003/diff/100001/chrome/browser/extensions/api/gcm/gcm_api.cc File chrome/browser/extensions/api/gcm/gcm_api.cc (right): https://codereview.chromium.org/286213003/diff/100001/chrome/browser/extensions/api/gcm/gcm_api.cc#newcode33 chrome/browser/extensions/api/gcm/gcm_api.cc:33: const char kGCMDisabled[] = "GCM was disabled. Please try ...
6 years, 7 months ago (2014-05-19 23:03:48 UTC) #6
jianli
https://codereview.chromium.org/286213003/diff/100001/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (right): https://codereview.chromium.org/286213003/diff/100001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode90 chrome/browser/services/gcm/gcm_profile_service.cc:90: driver_.reset(new GCMDriver( On 2014/05/19 23:03:48, jianli wrote: > On ...
6 years, 7 months ago (2014-05-20 17:37:22 UTC) #7
fgorski
On 2014/05/20 17:37:22, jianli wrote: > https://codereview.chromium.org/286213003/diff/100001/chrome/browser/services/gcm/gcm_profile_service.cc > File chrome/browser/services/gcm/gcm_profile_service.cc (right): > > https://codereview.chromium.org/286213003/diff/100001/chrome/browser/services/gcm/gcm_profile_service.cc#newcode90 > ...
6 years, 7 months ago (2014-05-20 18:54:50 UTC) #8
Nicolas Zea
lgtm
6 years, 7 months ago (2014-05-20 19:53:06 UTC) #9
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 7 months ago (2014-05-20 19:54:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/286213003/160001
6 years, 7 months ago (2014-05-20 19:56:26 UTC) #11
jianli
The CQ bit was unchecked by jianli@chromium.org
6 years, 7 months ago (2014-05-20 20:37:12 UTC) #12
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 7 months ago (2014-05-20 20:49:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/286213003/180001
6 years, 7 months ago (2014-05-20 20:49:42 UTC) #14
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 7 months ago (2014-05-20 21:21:42 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/286213003/200001
6 years, 7 months ago (2014-05-20 21:22:30 UTC) #16
commit-bot: I haz the power
6 years, 7 months ago (2014-05-21 03:09:09 UTC) #17
Message was sent while issue was closed.
Change committed as 271832

Powered by Google App Engine
This is Rietveld 408576698