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

Issue 1258313002: Send GCM id to DMServer (Closed)

Created:
5 years, 4 months ago by binjin
Modified:
5 years, 4 months ago
CC:
chromium-reviews, jinzhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send GCM id to DMServer This CL add a device management request to send GCM id after registration to the server, so that server can maintain a mapping between GCM id and DM token. BUG=517466 Committed: https://crrev.com/92960c61ee75a5323fc954b9819acca5b684d2aa Cr-Commit-Position: refs/heads/master@{#342364} Committed: https://crrev.com/3cde6e4de0c5ba3915dce583cd8dee7614e1c104 Cr-Commit-Position: refs/heads/master@{#342850}

Patch Set 1 : protobuf change #

Total comments: 1

Patch Set 2 : WIP #

Patch Set 3 : add tests #

Total comments: 16

Patch Set 4 : addressing #8 #

Total comments: 12

Patch Set 5 : fixes addressing #9 and #10 #

Total comments: 2

Patch Set 6 : rebase #

Patch Set 7 : fixes addressing #12 #

Patch Set 8 : add accidentally removed comment #

Patch Set 9 : fix typo #

Patch Set 10 : adopt upstream protobuf changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -22 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/policy/heartbeat_scheduler.h View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/heartbeat_scheduler.cc View 1 2 3 4 5 6 7 8 9 5 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +32 lines, -4 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +38 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +37 lines, -9 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/mock_cloud_policy_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/proto/device_management_backend.proto View 1 2 3 4 5 6 7 8 9 6 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 51 (21 generated)
binjin
Hi Jin, Please review the change to protobuf file.
5 years, 4 months ago (2015-07-28 18:02:25 UTC) #1
jinzhang1
https://codereview.chromium.org/1258313002/diff/1/components/policy/proto/device_management_backend.proto File components/policy/proto/device_management_backend.proto (right): https://codereview.chromium.org/1258313002/diff/1/components/policy/proto/device_management_backend.proto#newcode1032 components/policy/proto/device_management_backend.proto:1032: // * attribute_update Please add a comment here to ...
5 years, 4 months ago (2015-07-28 18:56:17 UTC) #3
jinzhang1
lgtm
5 years, 4 months ago (2015-07-28 18:57:44 UTC) #4
binjin
Hi Drew, PTAL. I'm not sure how to handle the case where we failed to ...
5 years, 4 months ago (2015-07-31 17:09:06 UTC) #6
Andrew T Wilson (Slow)
Mostly LG. Good question about how to handle failures. I'm OK to ignore failures in ...
5 years, 4 months ago (2015-08-03 13:52:26 UTC) #7
binjin
https://codereview.chromium.org/1258313002/diff/40001/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc File chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc (right): https://codereview.chromium.org/1258313002/diff/40001/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc#newcode257 chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc:257: g_browser_process->gcm_driver(), core()->client(), On 2015/08/03 13:52:26, Andrew T Wilson wrote: ...
5 years, 4 months ago (2015-08-03 17:54:25 UTC) #8
jinzhang1
https://codereview.chromium.org/1258313002/diff/60001/components/policy/proto/device_management_backend.proto File components/policy/proto/device_management_backend.proto (right): https://codereview.chromium.org/1258313002/diff/60001/components/policy/proto/device_management_backend.proto#newcode1024 components/policy/proto/device_management_backend.proto:1024: // Sent by the client to server to update ...
5 years, 4 months ago (2015-08-05 22:08:04 UTC) #9
Andrew T Wilson (Slow)
LGTM, if you can get rid of SetCloudPolicyClientForTesting() https://codereview.chromium.org/1258313002/diff/60001/chrome/browser/chromeos/policy/heartbeat_scheduler.cc File chrome/browser/chromeos/policy/heartbeat_scheduler.cc (right): https://codereview.chromium.org/1258313002/diff/60001/chrome/browser/chromeos/policy/heartbeat_scheduler.cc#newcode393 chrome/browser/chromeos/policy/heartbeat_scheduler.cc:393: void ...
5 years, 4 months ago (2015-08-06 09:40:03 UTC) #10
binjin
https://codereview.chromium.org/1258313002/diff/60001/chrome/browser/chromeos/policy/heartbeat_scheduler.cc File chrome/browser/chromeos/policy/heartbeat_scheduler.cc (right): https://codereview.chromium.org/1258313002/diff/60001/chrome/browser/chromeos/policy/heartbeat_scheduler.cc#newcode393 chrome/browser/chromeos/policy/heartbeat_scheduler.cc:393: void HeartbeatScheduler::OnGcmIdMappingRequestSent(bool status) { On 2015/08/06 09:40:02, Andrew T ...
5 years, 4 months ago (2015-08-06 10:19:15 UTC) #11
Andrew T Wilson (Slow)
https://codereview.chromium.org/1258313002/diff/80001/chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc File chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc (right): https://codereview.chromium.org/1258313002/diff/80001/chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc#newcode64 chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc:64: InitializeScheduler(nullptr); why not set a mock cloud policy client ...
5 years, 4 months ago (2015-08-06 11:17:06 UTC) #12
binjin
https://codereview.chromium.org/1258313002/diff/80001/chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc File chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc (right): https://codereview.chromium.org/1258313002/diff/80001/chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc#newcode64 chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc:64: InitializeScheduler(nullptr); On 2015/08/06 11:17:06, Andrew T Wilson wrote: > ...
5 years, 4 months ago (2015-08-06 13:33:02 UTC) #13
Andrew T Wilson (Slow)
lgtm
5 years, 4 months ago (2015-08-06 14:23:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/140001
5 years, 4 months ago (2015-08-06 14:26:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/160001
5 years, 4 months ago (2015-08-06 16:09:08 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/87414)
5 years, 4 months ago (2015-08-06 17:00:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/160001
5 years, 4 months ago (2015-08-06 17:05:24 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89753)
5 years, 4 months ago (2015-08-06 18:30:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/160001
5 years, 4 months ago (2015-08-06 18:35:22 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89859)
5 years, 4 months ago (2015-08-06 20:59:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/160001
5 years, 4 months ago (2015-08-06 21:04:09 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/89999)
5 years, 4 months ago (2015-08-06 22:59:55 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/180001
5 years, 4 months ago (2015-08-07 13:19:11 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/90395)
5 years, 4 months ago (2015-08-07 14:37:04 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/180001
5 years, 4 months ago (2015-08-07 14:40:55 UTC) #44
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-08-07 16:15:46 UTC) #45
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/92960c61ee75a5323fc954b9819acca5b684d2aa Cr-Commit-Position: refs/heads/master@{#342364}
5 years, 4 months ago (2015-08-07 16:16:55 UTC) #46
binjin
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/1276853003/ by binjin@chromium.org. ...
5 years, 4 months ago (2015-08-07 20:44:00 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1258313002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1258313002/180001
5 years, 4 months ago (2015-08-11 17:05:14 UTC) #49
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-08-11 18:27:53 UTC) #50
commit-bot: I haz the power
5 years, 4 months ago (2015-08-11 18:28:38 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3cde6e4de0c5ba3915dce583cd8dee7614e1c104
Cr-Commit-Position: refs/heads/master@{#342850}

Powered by Google App Engine
This is Rietveld 408576698