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

Issue 72793003: ComponentCloudPolicyService tracks the signin state. (Closed)

Created:
7 years, 1 month ago by Joao da Silva
Modified:
7 years, 1 month ago
Reviewers:
bartfab (slow)
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

ComponentCloudPolicyService tracks the signin state. The ComponentCloudPolicyService is used to fetch policy for Chrome components such as extensions. This change makes it follow the sign-in state by observing the cloud policy store and a cloud policy core, which determine that state from the cloud policy system perspective. The component policy cache will be cleared on signout. The ComponentCloudPolicyService now tracks a CloudPolicyCore to determine whether a CloudPolicyClient is available or not; it is possible to signin and signout multiple times. BUG=108992 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235747

Patch Set 1 #

Patch Set 2 : obsolete comment #

Patch Set 3 : rebase #

Total comments: 12

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -211 lines) Patch
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 3 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_browsertest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service.h View 1 2 3 5 chunks +39 lines, -30 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service.cc View 1 2 3 9 chunks +184 lines, -130 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc View 1 2 3 14 chunks +116 lines, -36 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_store.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/component_cloud_policy_store.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/resource_cache.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/resource_cache.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M components/policy/core/common/policy_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/policy_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Joao da Silva
It's the last of the big ones, and not that big :-) PTAL, thanks!
7 years, 1 month ago (2013-11-17 20:11:51 UTC) #1
bartfab (slow)
lgtm https://codereview.chromium.org/72793003/diff/50001/chrome/browser/policy/cloud/component_cloud_policy_service.cc File chrome/browser/policy/cloud/component_cloud_policy_service.cc (right): https://codereview.chromium.org/72793003/diff/50001/chrome/browser/policy/cloud/component_cloud_policy_service.cc#newcode15 chrome/browser/policy/cloud/component_cloud_policy_service.cc:15: #include "base/time/time.h" Nit: No longer used. https://codereview.chromium.org/72793003/diff/50001/chrome/browser/policy/cloud/component_cloud_policy_service.cc#newcode361 chrome/browser/policy/cloud/component_cloud_policy_service.cc:361: ...
7 years, 1 month ago (2013-11-18 13:15:39 UTC) #2
Joao da Silva
https://codereview.chromium.org/72793003/diff/50001/chrome/browser/policy/cloud/component_cloud_policy_service.cc File chrome/browser/policy/cloud/component_cloud_policy_service.cc (right): https://codereview.chromium.org/72793003/diff/50001/chrome/browser/policy/cloud/component_cloud_policy_service.cc#newcode15 chrome/browser/policy/cloud/component_cloud_policy_service.cc:15: #include "base/time/time.h" On 2013/11/18 13:15:39, bartfab wrote: > Nit: ...
7 years, 1 month ago (2013-11-18 14:54:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/72793003/280001
7 years, 1 month ago (2013-11-18 14:54:44 UTC) #4
commit-bot: I haz the power
7 years, 1 month ago (2013-11-18 16:52:47 UTC) #5
Message was sent while issue was closed.
Change committed as 235747

Powered by Google App Engine
This is Rietveld 408576698