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

Issue 8586030: Added ConfigurationPolicyProvider::RefreshPolicies. (Closed)

Created:
9 years, 1 month ago by Joao da Silva
Modified:
9 years, 1 month ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, kkania, robertshield, Paweł Hajdan Jr., stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Added ConfigurationPolicyProvider::RefreshPolicies. This call has guaranteed behavior regarding notifications of observers, which can be relied upon to build test infrastructure that sets up policy. Added the provider as an argument to OnUpdatePolicy. Added BrowserPolicyConnector::FetchCloudPolicy and ResetCloudPolicy. TEST=All works as before Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110977

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fixed win build #

Total comments: 6

Patch Set 3 : Simpler AsyncLoader, fixed unit_tests, added connector::RefreshPolicies #

Total comments: 11

Patch Set 4 : BrowserPolicyConnector is less static; addressed comments #

Total comments: 2

Patch Set 5 : Added unit_tests for RefreshPolicies #

Patch Set 6 : More tests; rebased #

Patch Set 7 : Removed non-virtual marked with OVERRIDE #

Patch Set 8 : Fixed LoginUtilsTest #

Total comments: 14

Patch Set 9 : Addressed comments #

Patch Set 10 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -221 lines) Patch
M chrome/browser/automation/testing_automation_provider_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_loader_unittest.cc View 1 2 3 4 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider.h View 1 2 3 2 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider.cc View 1 2 3 3 chunks +40 lines, -7 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_provider_unittest.cc View 1 2 3 4 2 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 2 3 4 chunks +13 lines, -19 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 5 chunks +38 lines, -52 lines 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud_policy_cache_base.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider_impl.h View 1 2 3 3 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider_impl.cc View 1 2 3 3 chunks +26 lines, -8 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +79 lines, -21 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 17 chunks +20 lines, -20 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.h View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 2 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_mac_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_test.cc View 1 2 3 4 5 chunks +40 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_reader.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader_unittest.cc View 6 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/policy/device_policy_cache.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/policy/device_policy_cache.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/policy/file_based_policy_loader.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/policy/file_based_policy_provider_unittest.cc View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.h View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/policy/network_configuration_updater.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/network_configuration_updater.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/policy/user_policy_cache.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/user_policy_cache_unittest.cc View 1 2 3 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Joao da Silva
Here's a monster CL for your reviewing, uh, pleasure :-) I'll write tests for the ...
9 years, 1 month ago (2011-11-17 15:48:23 UTC) #1
Mattias Nissler (ping if slow)
Here are my comments, I think I also found an issue with RefreshPolicies() not synchronizing ...
9 years, 1 month ago (2011-11-18 11:00:25 UTC) #2
Joao da Silva
Please have another look! http://codereview.chromium.org/8586030/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): http://codereview.chromium.org/8586030/diff/1/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode943 chrome/browser/automation/testing_automation_provider_chromeos.cc:943: void TestingAutomationProvider::FetchEnterprisePolicy( On 2011/11/18 11:00:25, ...
9 years, 1 month ago (2011-11-18 14:03:30 UTC) #3
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8586030/diff/7001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/8586030/diff/7001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc#newcode289 chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc:289: connector->FetchCloudPolicy(); This is not quite what we want, but ...
9 years, 1 month ago (2011-11-18 14:49:32 UTC) #4
Joao da Silva
It keeps growing! :-) PTAL http://codereview.chromium.org/8586030/diff/7001/chrome/browser/policy/asynchronous_policy_provider.h File chrome/browser/policy/asynchronous_policy_provider.h (right): http://codereview.chromium.org/8586030/diff/7001/chrome/browser/policy/asynchronous_policy_provider.h#newcode47 chrome/browser/policy/asynchronous_policy_provider.h:47: static void PostReloadOnFILE(scoped_refptr<AsynchronousPolicyLoader> loader); ...
9 years, 1 month ago (2011-11-18 15:39:18 UTC) #5
Mattias Nissler (ping if slow)
I still don't like the Refresh-All-Providers-Cancel-Everything-But-One-DoWork, but don't have a better suggestion at this point. ...
9 years, 1 month ago (2011-11-18 16:14:11 UTC) #6
Joao da Silva
Please have another look; this has been more thoroughly tested, and unit tests have been ...
9 years, 1 month ago (2011-11-21 14:55:04 UTC) #7
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8586030/diff/21001/chrome/browser/policy/cloud_policy_provider_unittest.cc File chrome/browser/policy/cloud_policy_provider_unittest.cc (right): http://codereview.chromium.org/8586030/diff/21001/chrome/browser/policy/cloud_policy_provider_unittest.cc#newcode9 chrome/browser/policy/cloud_policy_provider_unittest.cc:9: #include "chrome/browser/browser_process.h" needed? http://codereview.chromium.org/8586030/diff/21001/chrome/browser/policy/cloud_policy_provider_unittest.cc#newcode76 chrome/browser/policy/cloud_policy_provider_unittest.cc:76: g_browser_process->browser_policy_connector(), Wait, shouldn't you ...
9 years, 1 month ago (2011-11-21 16:09:05 UTC) #8
Joao da Silva
Please have another look. Thanks for reviewing :-) http://codereview.chromium.org/8586030/diff/21001/chrome/browser/policy/cloud_policy_provider_unittest.cc File chrome/browser/policy/cloud_policy_provider_unittest.cc (right): http://codereview.chromium.org/8586030/diff/21001/chrome/browser/policy/cloud_policy_provider_unittest.cc#newcode9 chrome/browser/policy/cloud_policy_provider_unittest.cc:9: #include ...
9 years, 1 month ago (2011-11-21 16:49:21 UTC) #9
Mattias Nissler (ping if slow)
LGTM
9 years, 1 month ago (2011-11-21 16:57:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/8586030/29001
9 years, 1 month ago (2011-11-21 17:38:55 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-11-21 19:26:16 UTC) #12
Change committed as 110977

Powered by Google App Engine
This is Rietveld 408576698