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

Issue 88423002: Add CloudExternalDataPolicyObserverChromeOS (Closed)

Created:
7 years ago by bartfab (slow)
Modified:
7 years ago
CC:
chromium-reviews, jar (doing other things), Ilya Sherman, joaodasilva+watch_chromium.org, asvitkine+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Add CloudExternalDataPolicyObserver This CL adds the CloudExternalDataPolicyObserver. This helper can be used to observe a policy referencing external data for all users on a device, covering both device-local accounts (whose policy is available and may change anytime) and regular accounts (whose policy is available and may change only when the user is logged in). The helper emits notifications when an external data reference is set, cleared or an external data fetch completes successfully. The helper will be used to implement a policy for setting the avatar image and a policy for setting the wallpaper. The CL also adds the first policy referencing external data. The policy is not wired up yet but having it defined unblocks server-side work and makes testing easier. The policy will be implemented in a follow-up CL coming soon. BUG=152957, 152959, 220418 TEST=Full unit test coverage TBR=askvitkine@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237806

Patch Set 1 #

Patch Set 2 : Whitespace fix. #

Total comments: 54

Patch Set 3 : Addressed nits. Rebased. #

Patch Set 4 : Addressed comments. #

Total comments: 2

Patch Set 5 : Addressed suggestion. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1530 lines, -19 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 3 chunks +48 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/cloud_external_data_policy_observer.cc View 1 2 3 4 1 chunk +313 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc View 1 2 3 1 chunk +950 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/mock_cloud_external_data_manager.h View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/mock_cloud_external_data_manager.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 1 chunk +2 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 chrome/test/base/testing_profile.h View 1 2 5 chunks +8 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 6 chunks +19 lines, -7 lines 0 comments Download
A chrome/test/data/policy/avatar1.jpg View Binary file 0 comments Download
A chrome/test/data/policy/avatar2.jpg View Binary file 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/core/common/policy_map.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M components/policy/core/common/policy_map.cc View 1 2 3 5 chunks +25 lines, -10 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
bartfab (slow)
Hi Joao, Could you take a look at this CL? Hi Paweł, Could you take ...
7 years ago (2013-11-26 14:39:34 UTC) #1
Paweł Hajdan Jr.
chrome/test LGTM with comments https://codereview.chromium.org/88423002/diff/20001/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/88423002/diff/20001/chrome/test/base/testing_profile.cc#newcode640 chrome/test/base/testing_profile.cc:640: #endif nit: // defined(ENABLE...) https://codereview.chromium.org/88423002/diff/20001/chrome/test/base/testing_profile.h ...
7 years ago (2013-11-26 22:55:51 UTC) #2
bartfab (slow)
https://codereview.chromium.org/88423002/diff/20001/chrome/test/base/testing_profile.cc File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/88423002/diff/20001/chrome/test/base/testing_profile.cc#newcode640 chrome/test/base/testing_profile.cc:640: #endif On 2013/11/26 22:55:52, Paweł Hajdan Jr. wrote: > ...
7 years ago (2013-11-27 14:31:24 UTC) #3
Joao da Silva
Seems reasonable though a bit heavyweight. https://codereview.chromium.org/88423002/diff/20001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://codereview.chromium.org/88423002/diff/20001/chrome/app/policy/policy_templates.json#newcode5730 chrome/app/policy/policy_templates.json:5730: 'name': 'Avatar', I ...
7 years ago (2013-11-27 14:33:59 UTC) #4
bartfab (slow)
https://chromiumcodereview.appspot.com/88423002/diff/20001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/88423002/diff/20001/chrome/app/policy/policy_templates.json#newcode5730 chrome/app/policy/policy_templates.json:5730: 'name': 'Avatar', On 2013/11/27 14:33:59, Joao da Silva wrote: ...
7 years ago (2013-11-27 20:10:15 UTC) #5
Joao da Silva
lgtm Impressive test coverage! https://chromiumcodereview.appspot.com/88423002/diff/60001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h File chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h (right): https://chromiumcodereview.appspot.com/88423002/diff/60001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h#newcode58 chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h:58: scoped_ptr<std::string> data) = 0; Suggestion: ...
7 years ago (2013-11-28 08:40:17 UTC) #6
bartfab (slow)
https://chromiumcodereview.appspot.com/88423002/diff/60001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h File chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h (right): https://chromiumcodereview.appspot.com/88423002/diff/60001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h#newcode58 chrome/browser/chromeos/policy/cloud_external_data_policy_observer.h:58: scoped_ptr<std::string> data) = 0; On 2013/11/28 08:40:19, Joao da ...
7 years ago (2013-11-28 12:58:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/88423002/80001
7 years ago (2013-11-28 12:58:23 UTC) #8
commit-bot: I haz the power
7 years ago (2013-11-28 16:56:44 UTC) #9
Message was sent while issue was closed.
Change committed as 237806

Powered by Google App Engine
This is Rietveld 408576698