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

Issue 10236003: Added RefreshPolicies to PolicyService. (Closed)

Created:
8 years, 8 months ago by Joao da Silva
Modified:
8 years, 7 months ago
CC:
chromium-reviews, robertshield, kkania
Visibility:
Public.

Description

Added RefreshPolicies to PolicyService. Changed users of BrowserPolicyConnector::RefreshPolicies to use the new interface. BUG=108999 TEST=unit_tests green, pyauto tests green, all works as before Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134886

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed build, about:policy refresh button waits for callback, mock methods #

Patch Set 3 : Fix chromeos build again #

Patch Set 4 : Fix chromeos build (this time I mean it) #

Total comments: 12

Patch Set 5 : Changed ui/js messages, addressed comments #

Total comments: 2

Patch Set 6 : removed waitingForInitialData_ flag #

Patch Set 7 : Simpler test setup using an uninitialized store #

Total comments: 3

Patch Set 8 : Rebased, fixed nit #

Patch Set 9 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+554 lines, -515 lines) Patch
M chrome/browser/automation/automation_provider_observers.h View 1 2 3 4 5 6 7 2 chunks +0 lines, -40 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -87 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 6 chunks +28 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/asynchronous_policy_loader_unittest.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 4 5 6 28 chunks +195 lines, -199 lines 0 comments Download
M chrome/browser/policy/configuration_policy_reader_unittest.cc View 1 7 chunks +24 lines, -17 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.h View 1 1 chunk +10 lines, -15 lines 0 comments Download
M chrome/browser/policy/mock_configuration_policy_provider.cc View 1 1 chunk +1 line, -37 lines 0 comments Download
M chrome/browser/policy/network_configuration_updater_unittest.cc View 1 2 3 5 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/policy/policy_service.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_service_impl.h View 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/policy/policy_service_impl.cc View 1 2 3 4 8 chunks +43 lines, -4 lines 0 comments Download
M chrome/browser/policy/policy_service_stub.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_service_stub.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_service_unittest.cc View 1 8 chunks +146 lines, -35 lines 0 comments Download
M chrome/browser/prefs/proxy_policy_unittest.cc View 1 9 chunks +36 lines, -18 lines 0 comments Download
M chrome/browser/resources/policy.js View 1 2 3 4 5 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 2 3 4 5 6 7 4 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Joao da Silva
Please review, thanks!
8 years, 8 months ago (2012-04-26 10:46:20 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10236003/diff/1/chrome/browser/policy/mock_configuration_policy_provider.h File chrome/browser/policy/mock_configuration_policy_provider.h (right): http://codereview.chromium.org/10236003/diff/1/chrome/browser/policy/mock_configuration_policy_provider.h#newcode31 chrome/browser/policy/mock_configuration_policy_provider.h:31: void SetNotifyOnRefresh(bool notify_on_refresh); How about making RefreshPolicies() a proper ...
8 years, 8 months ago (2012-04-26 11:08:52 UTC) #2
Joao da Silva
PTAL http://codereview.chromium.org/10236003/diff/1/chrome/browser/policy/mock_configuration_policy_provider.h File chrome/browser/policy/mock_configuration_policy_provider.h (right): http://codereview.chromium.org/10236003/diff/1/chrome/browser/policy/mock_configuration_policy_provider.h#newcode31 chrome/browser/policy/mock_configuration_policy_provider.h:31: void SetNotifyOnRefresh(bool notify_on_refresh); On 2012/04/26 11:08:52, Mattias Nissler ...
8 years, 8 months ago (2012-04-26 14:43:57 UTC) #3
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10236003/diff/14001/chrome/browser/policy/configuration_policy_pref_store_unittest.cc File chrome/browser/policy/configuration_policy_pref_store_unittest.cc (right): http://codereview.chromium.org/10236003/diff/14001/chrome/browser/policy/configuration_policy_pref_store_unittest.cc#newcode970 chrome/browser/policy/configuration_policy_pref_store_unittest.cc:970: void ResetServiceAndStore() { Since this is not declared virtual ...
8 years, 8 months ago (2012-04-27 09:03:27 UTC) #4
Joao da Silva
Please have another look! http://codereview.chromium.org/10236003/diff/14001/chrome/browser/policy/configuration_policy_pref_store_unittest.cc File chrome/browser/policy/configuration_policy_pref_store_unittest.cc (right): http://codereview.chromium.org/10236003/diff/14001/chrome/browser/policy/configuration_policy_pref_store_unittest.cc#newcode970 chrome/browser/policy/configuration_policy_pref_store_unittest.cc:970: void ResetServiceAndStore() { On 2012/04/27 ...
8 years, 8 months ago (2012-04-27 11:24:12 UTC) #5
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10236003/diff/14001/chrome/browser/policy/configuration_policy_pref_store_unittest.cc File chrome/browser/policy/configuration_policy_pref_store_unittest.cc (right): http://codereview.chromium.org/10236003/diff/14001/chrome/browser/policy/configuration_policy_pref_store_unittest.cc#newcode1008 chrome/browser/policy/configuration_policy_pref_store_unittest.cc:1008: ResetServiceAndStore(); On 2012/04/27 11:24:12, Joao da Silva wrote: > ...
8 years, 8 months ago (2012-04-27 12:52:57 UTC) #6
Joao da Silva
Testing this over X forwarding over VPN is great fun :-) PTAL http://codereview.chromium.org/10236003/diff/19001/chrome/browser/resources/policy.js File chrome/browser/resources/policy.js ...
8 years, 8 months ago (2012-04-27 13:26:43 UTC) #7
Mattias Nissler (ping if slow)
On 2012/04/27 13:26:43, Joao da Silva wrote: > Testing this over X forwarding over VPN ...
8 years, 8 months ago (2012-04-27 13:34:20 UTC) #8
Joao da Silva
Somehow missed that comment; it has been addressed in the latest patch set. http://codereview.chromium.org/10236003/diff/14001/chrome/browser/policy/configuration_policy_pref_store_unittest.cc File ...
8 years, 8 months ago (2012-04-27 13:46:29 UTC) #9
Mattias Nissler (ping if slow)
LGTM
8 years, 8 months ago (2012-04-27 14:10:23 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/10236003/25002
8 years, 8 months ago (2012-04-27 14:11:25 UTC) #11
commit-bot: I haz the power
Presubmit check for 10236003-25002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 8 months ago (2012-04-27 14:11:42 UTC) #12
Joao da Silva
@James: please review ui/webui and resources/. Thanks!
8 years, 8 months ago (2012-04-27 14:19:29 UTC) #13
James Hawkins
LGTM with optional nit. http://codereview.chromium.org/10236003/diff/25002/chrome/browser/ui/webui/policy_ui.h File chrome/browser/ui/webui/policy_ui.h (right): http://codereview.chromium.org/10236003/diff/25002/chrome/browser/ui/webui/policy_ui.h#newcode72 chrome/browser/ui/webui/policy_ui.h:72: base::WeakPtrFactory<PolicyUIHandler> weak_ptr_factory_; Optional nit: Precedence ...
8 years, 8 months ago (2012-04-27 17:13:08 UTC) #14
Joao da Silva
Thanks for the review! http://codereview.chromium.org/10236003/diff/25002/chrome/browser/ui/webui/policy_ui.h File chrome/browser/ui/webui/policy_ui.h (right): http://codereview.chromium.org/10236003/diff/25002/chrome/browser/ui/webui/policy_ui.h#newcode72 chrome/browser/ui/webui/policy_ui.h:72: base::WeakPtrFactory<PolicyUIHandler> weak_ptr_factory_; On 2012/04/27 17:13:08, ...
8 years, 8 months ago (2012-04-27 17:44:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/10236003/28002
8 years, 8 months ago (2012-04-27 17:46:05 UTC) #16
James Hawkins
http://codereview.chromium.org/10236003/diff/25002/chrome/browser/ui/webui/policy_ui.h File chrome/browser/ui/webui/policy_ui.h (right): http://codereview.chromium.org/10236003/diff/25002/chrome/browser/ui/webui/policy_ui.h#newcode72 chrome/browser/ui/webui/policy_ui.h:72: base::WeakPtrFactory<PolicyUIHandler> weak_ptr_factory_; On 2012/04/27 17:44:06, Joao da Silva wrote: ...
8 years, 8 months ago (2012-04-27 18:07:24 UTC) #17
commit-bot: I haz the power
Try job failure for 10236003-28002 (retry) on win_rel for steps "browser_tests, check_deps" (clobber build). It's ...
8 years, 8 months ago (2012-04-27 20:02:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/10236003/30003
8 years, 7 months ago (2012-05-02 08:30:09 UTC) #19
commit-bot: I haz the power
8 years, 7 months ago (2012-05-02 10:04:16 UTC) #20
Change committed as 134886

Powered by Google App Engine
This is Rietveld 408576698