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

Issue 99433004: Add a header when fetching pages under the DMServer URL. (Closed)

Created:
7 years ago by Andrew T Wilson (Slow)
Modified:
7 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add a header when fetching pages under the DMServer URL. PolicyHeaderService now generates a json-style header to send up with web requests sent to DMServer containing information about the current policy state. This allows DMServer to return policy information via SAML assertions to authorized service providers. BUG=326799 TBR=jochen Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240019

Patch Set 1 #

Patch Set 2 : Added unit tests and fixed up from weekend component refactoring. #

Total comments: 11

Patch Set 3 : Whitespace fix. #

Total comments: 36

Patch Set 4 : Addressed review feedback. #

Patch Set 5 : Fixes to iOS and CrOS compilation errors. #

Total comments: 14

Patch Set 6 : Addressed nits. #

Total comments: 7

Patch Set 7 : Fixed cros issue due to cros TestingProfile not having a UCPM #

Patch Set 8 : Changed per willchan's feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+667 lines, -9 lines) Patch
M chrome/browser/chromeos/policy/auto_enrollment_client.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/DEPS View 1 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud/policy_header_service.h View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud/policy_header_service.cc View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud/policy_header_service_factory.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud/policy_header_service_factory.cc View 1 2 3 4 5 6 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/browser/policy/cloud/policy_header_service_unittest.cc View 1 2 3 4 5 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service_base.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/policy.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A components/policy/core/browser/policy_header_io_helper.h View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A components/policy/core/browser/policy_header_io_helper.cc View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A components/policy/core/browser/policy_header_io_helper_unittest.cc View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/policy/core/common/cloud/device_management_service.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Andrew T Wilson (Slow)
Joao,Daniel PTAL. I can move PolicyHeaderService to components/ after the latest bulk-file-move, but I'll do ...
7 years ago (2013-12-09 10:24:59 UTC) #1
dconnelly
lgtm https://codereview.chromium.org/99433004/diff/20001/chrome/browser/policy/cloud/policy_header_service.h File chrome/browser/policy/cloud/policy_header_service.h (right): https://codereview.chromium.org/99433004/diff/20001/chrome/browser/policy/cloud/policy_header_service.h#newcode36 chrome/browser/policy/cloud/policy_header_service.h:36: // Creates a PolicyHeaderIOHelper object to be run ...
7 years ago (2013-12-09 12:47:34 UTC) #2
Joao da Silva
https://codereview.chromium.org/99433004/diff/40001/chrome/browser/policy/cloud/policy_header_service.h File chrome/browser/policy/cloud/policy_header_service.h (right): https://codereview.chromium.org/99433004/diff/40001/chrome/browser/policy/cloud/policy_header_service.h#newcode63 chrome/browser/policy/cloud/policy_header_service.h:63: }; DISALLOW_COPY_AND_ASSIGN https://codereview.chromium.org/99433004/diff/40001/chrome/browser/policy/cloud/policy_header_service_factory.cc File chrome/browser/policy/cloud/policy_header_service_factory.cc (right): https://codereview.chromium.org/99433004/diff/40001/chrome/browser/policy/cloud/policy_header_service_factory.cc#newcode22 chrome/browser/policy/cloud/policy_header_service_factory.cc:22: class ...
7 years ago (2013-12-09 14:46:21 UTC) #3
Andrew T Wilson (Slow)
Joao, PTAL jam: need an OWNERS stamp for chrome_resource_dispatcher_host_delegate.cc willchan: need an OWNERS stamp for ...
7 years ago (2013-12-10 07:15:55 UTC) #4
Andrew T Wilson (Slow)
Adding jam/willchan for realz this time: John: ptal at chrome_resource_dispatcher_host_delegate.cc Will: ptal at profile_io_data.h/cc
7 years ago (2013-12-10 07:17:19 UTC) #5
Joao da Silva
lgtm with a couple nits https://codereview.chromium.org/99433004/diff/70001/chrome/browser/policy/cloud/policy_header_service_factory.cc File chrome/browser/policy/cloud/policy_header_service_factory.cc (right): https://codereview.chromium.org/99433004/diff/70001/chrome/browser/policy/cloud/policy_header_service_factory.cc#newcode12 chrome/browser/policy/cloud/policy_header_service_factory.cc:12: #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" Note that ...
7 years ago (2013-12-10 08:34:21 UTC) #6
Andrew T Wilson (Slow)
https://codereview.chromium.org/99433004/diff/70001/chrome/browser/policy/cloud/policy_header_service_factory.cc File chrome/browser/policy/cloud/policy_header_service_factory.cc (right): https://codereview.chromium.org/99433004/diff/70001/chrome/browser/policy/cloud/policy_header_service_factory.cc#newcode12 chrome/browser/policy/cloud/policy_header_service_factory.cc:12: #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" On 2013/12/10 08:34:21, Joao da Silva wrote: ...
7 years ago (2013-12-10 20:04:56 UTC) #7
jam
On 2013/12/10 07:17:19, Andrew T Wilson wrote: > Adding jam/willchan for realz this time: > ...
7 years ago (2013-12-10 20:14:48 UTC) #8
Joao da Silva
lgtm
7 years ago (2013-12-10 20:53:29 UTC) #9
willchan no longer on Chromium
https://codereview.chromium.org/99433004/diff/90001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/99433004/diff/90001/chrome/browser/profiles/profile_io_data.cc#newcode488 chrome/browser/profiles/profile_io_data.cc:488: io_message_loop_proxy).Pass(); I don't think you need the .Pass() here, ...
7 years ago (2013-12-10 23:27:08 UTC) #10
willchan no longer on Chromium
https://codereview.chromium.org/99433004/diff/70001/components/policy/core/browser/policy_header_io_helper.cc File components/policy/core/browser/policy_header_io_helper.cc (right): https://codereview.chromium.org/99433004/diff/70001/components/policy/core/browser/policy_header_io_helper.cc#newcode50 components/policy/core/browser/policy_header_io_helper.cc:50: base::Bind(&PolicyHeaderIOHelper::UpdateHeaderOnTaskRunner, Suggestions: s/task_runner_/io_task_runner_/ s/UpdateHeaderOnTaskRunner/UpdateHeaderOnIOThread/ I don't think there's an ...
7 years ago (2013-12-10 23:32:14 UTC) #11
Andrew T Wilson (Slow)
PTAL https://codereview.chromium.org/99433004/diff/70001/components/policy/core/browser/policy_header_io_helper.cc File components/policy/core/browser/policy_header_io_helper.cc (right): https://codereview.chromium.org/99433004/diff/70001/components/policy/core/browser/policy_header_io_helper.cc#newcode50 components/policy/core/browser/policy_header_io_helper.cc:50: base::Bind(&PolicyHeaderIOHelper::UpdateHeaderOnTaskRunner, On 2013/12/10 23:32:14, willchan wrote: > Suggestions: ...
7 years ago (2013-12-10 23:53:05 UTC) #12
willchan no longer on Chromium
LGTM https://codereview.chromium.org/99433004/diff/90001/components/policy/core/browser/policy_header_io_helper.h File components/policy/core/browser/policy_header_io_helper.h (right): https://codereview.chromium.org/99433004/diff/90001/components/policy/core/browser/policy_header_io_helper.h#newcode31 components/policy/core/browser/policy_header_io_helper.h:31: scoped_refptr<base::SequencedTaskRunner> task_runner); On 2013/12/10 23:53:06, Andrew T Wilson ...
7 years ago (2013-12-10 23:55:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/99433004/130001
7 years ago (2013-12-10 23:59:55 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=40493
7 years ago (2013-12-11 00:19:26 UTC) #15
Andrew T Wilson (Slow)
On 2013/12/11 00:19:26, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years ago (2013-12-11 00:31:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/99433004/130001
7 years ago (2013-12-11 00:34:20 UTC) #17
commit-bot: I haz the power
7 years ago (2013-12-11 04:58:03 UTC) #18
Message was sent while issue was closed.
Change committed as 240019

Powered by Google App Engine
This is Rietveld 408576698