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

Issue 653843003: [GCM] Start GCMChannelStatusSyncer when GCM is disabled (Closed)

Created:
6 years, 2 months ago by jianli
Modified:
6 years, 2 months ago
Reviewers:
fgorski
CC:
chromium-reviews, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[GCM] Start GCMChannelStatusSyncer when GCM is disabled We need to start GCMChannelStatusSyncer when GCM is disabled in order to poll the server to find out when it is reenabled. Also if server returns empty response, we should not treat it as error and trigger the backoff logic. BUG=423415 TEST=new tests added Committed: https://crrev.com/9e9dd3b7798b3500d70941af04b1325ef9a0b544 Cr-Commit-Position: refs/heads/master@{#299518} R=fgorski@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/74eadb07fbefe7b883b8d8056dd3e029ff45b088

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address feedback #

Patch Set 3 : Add a poll interval switch #

Total comments: 1

Patch Set 4 : Fix to poll interval switch #

Total comments: 1

Patch Set 5 : Address more comment #

Patch Set 6 : Fix for GCM not reenabled after being disabled on the fly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -40 lines) Patch
M chrome/browser/services/gcm/gcm_desktop_utils.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M components/gcm_driver/gcm_channel_status_request.h View 1 1 chunk +8 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_channel_status_request.cc View 1 2 chunks +9 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_channel_status_request_unittest.cc View 10 chunks +16 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_channel_status_syncer.h View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_channel_status_syncer.cc View 1 2 3 4 5 8 chunks +64 lines, -18 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 4 5 3 chunks +10 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop_unittest.cc View 1 2 3 4 5 4 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 23 (7 generated)
jianli
6 years, 2 months ago (2014-10-14 17:26:03 UTC) #2
fgorski
lgtm with nits https://codereview.chromium.org/653843003/diff/1/components/gcm_driver/gcm_channel_status_request.cc File components/gcm_driver/gcm_channel_status_request.cc (right): https://codereview.chromium.org/653843003/diff/1/components/gcm_driver/gcm_channel_status_request.cc#newcode109 components/gcm_driver/gcm_channel_status_request.cc:109: LOG(ERROR) << "GCM channel response failed ...
6 years, 2 months ago (2014-10-14 17:40:37 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/653843003/20001
6 years, 2 months ago (2014-10-14 17:46:09 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-14 18:57:42 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9e9dd3b7798b3500d70941af04b1325ef9a0b544 Cr-Commit-Position: refs/heads/master@{#299518}
6 years, 2 months ago (2014-10-14 18:59:14 UTC) #7
jianli
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/657703002/ by jianli@chromium.org. ...
6 years, 2 months ago (2014-10-14 23:13:10 UTC) #8
jianli
https://codereview.chromium.org/653843003/diff/1/components/gcm_driver/gcm_channel_status_request.cc File components/gcm_driver/gcm_channel_status_request.cc (right): https://codereview.chromium.org/653843003/diff/1/components/gcm_driver/gcm_channel_status_request.cc#newcode109 components/gcm_driver/gcm_channel_status_request.cc:109: LOG(ERROR) << "GCM channel response failed to be parse ...
6 years, 2 months ago (2014-10-14 23:21:47 UTC) #9
fgorski
One comment and awaiting response from James to my email. https://codereview.chromium.org/653843003/diff/40001/components/gcm_driver/gcm_channel_status_syncer.cc File components/gcm_driver/gcm_channel_status_syncer.cc (right): https://codereview.chromium.org/653843003/diff/40001/components/gcm_driver/gcm_channel_status_syncer.cc#newcode105 ...
6 years, 2 months ago (2014-10-15 17:01:52 UTC) #10
fgorski
lgtm https://codereview.chromium.org/653843003/diff/60001/components/gcm_driver/gcm_channel_status_syncer.cc File components/gcm_driver/gcm_channel_status_syncer.cc (right): https://codereview.chromium.org/653843003/diff/60001/components/gcm_driver/gcm_channel_status_syncer.cc#newcode119 components/gcm_driver/gcm_channel_status_syncer.cc:119: } nit: DVLOG here that it was not ...
6 years, 2 months ago (2014-10-15 21:17:20 UTC) #11
fgorski
still lgtm
6 years, 2 months ago (2014-10-15 22:44:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/653843003/100001
6 years, 2 months ago (2014-10-15 22:50:30 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/22596)
6 years, 2 months ago (2014-10-16 02:01:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/653843003/100001
6 years, 2 months ago (2014-10-16 05:42:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/22703)
6 years, 2 months ago (2014-10-16 05:48:14 UTC) #20
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/74eadb07fbefe7b883b8d8056dd3e029ff45b088 Cr-Commit-Position: refs/heads/master@{#299854}
6 years, 2 months ago (2014-10-16 05:55:23 UTC) #22
jianli
6 years, 2 months ago (2014-10-16 05:55:27 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
74eadb07fbefe7b883b8d8056dd3e029ff45b088 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698