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

Issue 756133002: Purge cache when the server removes the policy for an extension. (Closed)

Created:
6 years ago by Joao da Silva
Modified:
6 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Purge cache when the server removes the policy for an extension. Signed in users can get Chrome policies from a google service if their account is managed. This service can also optionally send policy for apps and extensions to the client. This change fixes a glitch in the policy cache that prevented it from purging old entries. If the policy for an extension is removed on the server side then Chrome will now drop it from the cache. BUG=435987 Committed: https://crrev.com/6d6c29093c59a971d635d477368179f5b023c4ec Cr-Commit-Position: refs/heads/master@{#306171}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : fix nits #

Patch Set 6 : fix mobile build #

Patch Set 7 : rebase #

Patch Set 8 : fix win build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -116 lines) Patch
M chrome/browser/chromeos/policy/device_local_account_policy_service.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 5 6 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_unittest.cc View 1 2 3 4 5 6 3 chunks +6 lines, -11 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_manager.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/cloud_policy_manager.cc View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service.cc View 1 2 3 4 9 chunks +57 lines, -26 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service_stub.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc View 1 2 3 4 14 chunks +92 lines, -66 lines 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M components/policy/core/common/policy_namespace.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Joao da Silva
Please have a look. Thanks!
6 years ago (2014-11-25 17:07:16 UTC) #2
Mattias Nissler (ping if slow)
https://codereview.chromium.org/756133002/diff/20001/components/policy/core/common/cloud/cloud_policy_client.h File components/policy/core/common/cloud/cloud_policy_client.h (right): https://codereview.chromium.org/756133002/diff/20001/components/policy/core/common/cloud/cloud_policy_client.h#newcode205 components/policy/core/common/cloud/cloud_policy_client.h:205: // the server didn't include a response. Hm, this ...
6 years ago (2014-11-26 13:44:14 UTC) #3
Joao da Silva
Ready for another look. This has been rebased on https://codereview.chromium.org/762863002. The ComponentCloudPolicyService is now required ...
6 years ago (2014-11-27 15:06:43 UTC) #4
Mattias Nissler (ping if slow)
LGTM w/ nits. https://codereview.chromium.org/756133002/diff/60001/components/policy/core/common/cloud/component_cloud_policy_service.cc File components/policy/core/common/cloud/component_cloud_policy_service.cc (right): https://codereview.chromium.org/756133002/diff/60001/components/policy/core/common/cloud/component_cloud_policy_service.cc#newcode86 components/policy/core/common/cloud/component_cloud_policy_service.cc:86: // Passes a vector with all ...
6 years ago (2014-11-28 14:19:05 UTC) #5
Joao da Silva
Thanks for the reviews! https://codereview.chromium.org/756133002/diff/60001/components/policy/core/common/cloud/component_cloud_policy_service.cc File components/policy/core/common/cloud/component_cloud_policy_service.cc (right): https://codereview.chromium.org/756133002/diff/60001/components/policy/core/common/cloud/component_cloud_policy_service.cc#newcode86 components/policy/core/common/cloud/component_cloud_policy_service.cc:86: // Passes a vector with ...
6 years ago (2014-11-28 15:16:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/756133002/80001
6 years ago (2014-11-28 15:17:41 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/38133)
6 years ago (2014-11-28 15:23:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/756133002/90001
6 years ago (2014-11-28 15:34:41 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel/builds/15624)
6 years ago (2014-11-28 15:55:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/756133002/130001
6 years ago (2014-12-01 10:32:19 UTC) #16
commit-bot: I haz the power
Committed patchset #8 (id:130001)
6 years ago (2014-12-01 11:15:38 UTC) #17
commit-bot: I haz the power
6 years ago (2014-12-01 11:16:27 UTC) #18
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6d6c29093c59a971d635d477368179f5b023c4ec
Cr-Commit-Position: refs/heads/master@{#306171}

Powered by Google App Engine
This is Rietveld 408576698