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

Issue 12209070: Fix cloud policy duplicate registrations issue. (Closed)

Created:
7 years, 10 months ago by Joao da Silva
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Bin
Visibility:
Public.

Description

Fix cloud policy duplicate registrations issue. The automatic retry behavior in case of misconfigured proxies and ERR_NETWORK_CHANGED could sometimes cause duplicated requests at the server, which then refuses the 2nd request with the same device-id. Setting the reregister flag in subsequent requests fixes that problem. BUG=173768 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182871

Patch Set 1 #

Total comments: 6

Patch Set 2 : Loads of tests #

Total comments: 6

Patch Set 3 : new browsertest #

Patch Set 4 : revert cloud_policy_browsertest.cc changes #

Patch Set 5 : fixed expected type on desktop, fixed return type #

Total comments: 18

Patch Set 6 : addressed comments #

Total comments: 14

Patch Set 7 : Fixed nits, rebased #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+929 lines, -198 lines) Patch
M chrome/browser/policy/cloud_policy_browsertest.cc View 1 2 3 4 5 6 3 chunks +4 lines, -23 lines 0 comments Download
M chrome/browser/policy/cloud_policy_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_client.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_client_unittest.cc View 1 2 3 4 5 6 4 chunks +35 lines, -14 lines 0 comments Download
A chrome/browser/policy/cloud_policy_manager_browsertest.cc View 1 2 3 4 5 6 1 chunk +186 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_management_service.h View 1 5 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_management_service.cc View 1 13 chunks +98 lines, -43 lines 0 comments Download
M chrome/browser/policy/device_management_service_browsertest.cc View 1 2 3 4 5 8 chunks +62 lines, -96 lines 0 comments Download
M chrome/browser/policy/device_management_service_unittest.cc View 1 23 chunks +104 lines, -18 lines 0 comments Download
M chrome/browser/policy/mock_cloud_policy_client.h View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/policy/mock_cloud_policy_client.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/mock_device_management_service.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/mock_device_management_service.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/policy/test_request_interceptor.h View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/policy/test_request_interceptor.cc View 1 2 3 4 5 6 1 chunk +257 lines, -0 lines 0 comments Download
A chrome/browser/policy/test_utils.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/policy/test_utils.cc View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Joao da Silva
@Mattias: please review. You'll immediately notice that there are no new tests yet; I'd like ...
7 years, 10 months ago (2013-02-08 18:01:27 UTC) #1
Mattias Nissler (ping if slow)
I guess I'm OK with this. The fact that the retry logic is split up ...
7 years, 10 months ago (2013-02-11 11:30:37 UTC) #2
Joao da Silva
Lots of tests added, please have a look. I guess this won't make it before ...
7 years, 10 months ago (2013-02-11 17:38:19 UTC) #3
Mattias Nissler (ping if slow)
https://codereview.chromium.org/12209070/diff/3002/chrome/browser/policy/cloud_policy_browsertest.cc File chrome/browser/policy/cloud_policy_browsertest.cc (right): https://codereview.chromium.org/12209070/diff/3002/chrome/browser/policy/cloud_policy_browsertest.cc#newcode102 chrome/browser/policy/cloud_policy_browsertest.cc:102: // posted to IO after all expected requests are ...
7 years, 10 months ago (2013-02-11 18:23:49 UTC) #4
Joao da Silva
@Mattias: PTAL https://codereview.chromium.org/12209070/diff/3002/chrome/browser/policy/cloud_policy_browsertest.cc File chrome/browser/policy/cloud_policy_browsertest.cc (right): https://codereview.chromium.org/12209070/diff/3002/chrome/browser/policy/cloud_policy_browsertest.cc#newcode102 chrome/browser/policy/cloud_policy_browsertest.cc:102: // posted to IO after all expected ...
7 years, 10 months ago (2013-02-12 16:33:41 UTC) #5
Mattias Nissler (ping if slow)
mostly good https://codereview.chromium.org/12209070/diff/11012/chrome/browser/policy/cloud_policy_manager_browsertest.cc File chrome/browser/policy/cloud_policy_manager_browsertest.cc (right): https://codereview.chromium.org/12209070/diff/11012/chrome/browser/policy/cloud_policy_manager_browsertest.cc#newcode87 chrome/browser/policy/cloud_policy_manager_browsertest.cc:87: net::NetworkDelegate* network_delegate) { move kBadHeaders definition here? ...
7 years, 10 months ago (2013-02-13 10:50:43 UTC) #6
Joao da Silva
PTAL https://codereview.chromium.org/12209070/diff/11012/chrome/browser/policy/cloud_policy_manager_browsertest.cc File chrome/browser/policy/cloud_policy_manager_browsertest.cc (right): https://codereview.chromium.org/12209070/diff/11012/chrome/browser/policy/cloud_policy_manager_browsertest.cc#newcode87 chrome/browser/policy/cloud_policy_manager_browsertest.cc:87: net::NetworkDelegate* network_delegate) { On 2013/02/13 10:50:43, Mattias Nissler ...
7 years, 10 months ago (2013-02-13 15:57:15 UTC) #7
Mattias Nissler (ping if slow)
LGTM with nits. https://codereview.chromium.org/12209070/diff/15002/chrome/browser/policy/cloud_policy_manager_browsertest.cc File chrome/browser/policy/cloud_policy_manager_browsertest.cc (right): https://codereview.chromium.org/12209070/diff/15002/chrome/browser/policy/cloud_policy_manager_browsertest.cc#newcode13 chrome/browser/policy/cloud_policy_manager_browsertest.cc:13: #include "chrome/browser/policy/cloud_policy_constants.h" needed? https://codereview.chromium.org/12209070/diff/15002/chrome/browser/policy/cloud_policy_manager_browsertest.cc#newcode20 chrome/browser/policy/cloud_policy_manager_browsertest.cc:20: #include ...
7 years, 10 months ago (2013-02-15 08:07:36 UTC) #8
Joao da Silva
Thanks for the comments! https://codereview.chromium.org/12209070/diff/15002/chrome/browser/policy/cloud_policy_manager_browsertest.cc File chrome/browser/policy/cloud_policy_manager_browsertest.cc (right): https://codereview.chromium.org/12209070/diff/15002/chrome/browser/policy/cloud_policy_manager_browsertest.cc#newcode13 chrome/browser/policy/cloud_policy_manager_browsertest.cc:13: #include "chrome/browser/policy/cloud_policy_constants.h" On 2013/02/15 08:07:36, ...
7 years, 10 months ago (2013-02-15 12:30:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/12209070/26001
7 years, 10 months ago (2013-02-15 12:31:02 UTC) #10
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=11301
7 years, 10 months ago (2013-02-15 16:52:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/12209070/34001
7 years, 10 months ago (2013-02-15 18:06:42 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-15 18:41:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/12209070/42001
7 years, 10 months ago (2013-02-15 19:23:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/12209070/42001
7 years, 10 months ago (2013-02-15 22:23:45 UTC) #15
commit-bot: I haz the power
7 years, 10 months ago (2013-02-16 00:45:50 UTC) #16
Message was sent while issue was closed.
Change committed as 182871

Powered by Google App Engine
This is Rietveld 408576698