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

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed)

Created:
6 years ago by Joao da Silva
Modified:
6 years ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Removed policy::PolicyNamespaceKey. The policy code maps policy namespaces (which are pairs of policy type and an optional settings entity ID, or component ID) to their policy internally. The namespace spilled into the CloudPolicyClient though the cloud policy protocol doesn't have this concept; this change clears that up. This is a cleanup of the policy code and doesn't make any functional changes. BUG=435987 Committed: https://crrev.com/fa667f7aa445c85d915050ee93d01b4a738348f4 Cr-Commit-Position: refs/heads/master@{#306079}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Cleanups #

Patch Set 3 : pass values in ctors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -215 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_invalidator_unittest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 9 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/profile_policy_connector_unittest.cc View 1 2 6 chunks +7 lines, -6 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.h View 1 6 chunks +20 lines, -12 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.cc View 7 chunks +22 lines, -17 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_unittest.cc View 1 20 chunks +56 lines, -46 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 2 chunks +0 lines, -4 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_core.h View 2 3 chunks +4 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_core.cc View 2 2 chunks +6 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_core_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_manager.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_manager.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_manager_unittest.cc View 1 2 10 chunks +16 lines, -20 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_refresh_scheduler_unittest.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_service.h View 3 chunks +6 lines, -4 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_service.cc View 3 chunks +8 lines, -5 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_service_unittest.cc View 1 6 chunks +10 lines, -10 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service.cc View 1 4 chunks +9 lines, -8 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc View 1 2 10 chunks +14 lines, -16 lines 0 comments Download
M components/policy/core/common/cloud/mock_cloud_policy_client.h View 3 chunks +3 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/mock_cloud_policy_client.cc View 1 3 chunks +9 lines, -5 lines 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_manager.cc View 1 2 2 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Joao da Silva
Here's the cleanup we've discussed. You may want to start at cloud_policy_client.h. If there's something ...
6 years ago (2014-11-26 16:44:07 UTC) #2
Mattias Nissler (ping if slow)
I think this is good. One idea before I do a full review pass: Does ...
6 years ago (2014-11-27 08:34:11 UTC) #3
Joao da Silva
The (policy_type, settings_entity_id) info is passed around because the service must know it to forward ...
6 years ago (2014-11-27 12:19:31 UTC) #4
Mattias Nissler (ping if slow)
On 2014/11/27 12:19:31, Joao da Silva wrote: > The (policy_type, settings_entity_id) info is passed around ...
6 years ago (2014-11-28 10:42:39 UTC) #5
Joao da Silva
Alright, reverted those changes again. PTAL
6 years ago (2014-11-28 13:28:59 UTC) #6
Mattias Nissler (ping if slow)
LGTM. Ship it!
6 years ago (2014-11-28 13:47:19 UTC) #7
Joao da Silva
Thanks! https://codereview.chromium.org/756133002/ has already been rebased on this and is ready for a review too ...
6 years ago (2014-11-28 13:49:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/762863002/40001
6 years ago (2014-11-28 13:50:48 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years ago (2014-11-28 14:11:58 UTC) #11
commit-bot: I haz the power
6 years ago (2014-11-28 14:13:39 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fa667f7aa445c85d915050ee93d01b4a738348f4
Cr-Commit-Position: refs/heads/master@{#306079}

Powered by Google App Engine
This is Rietveld 408576698