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

Issue 10448118: Add the AsyncPolicyProvider and AsyncPolicyLoader (Closed)

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

Description

Add the AsyncPolicyProvider and AsyncPolicyLoader, which provide the same functionality as the AsychronousPolicyProvider/Loader and FileBasedPolicyProvider/Loader. Also has a simpler interface for implementations to override. BUG=130918 TEST=unit_testsAsyncPolicyProviderTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140518

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Cleanup tests #

Patch Set 4 : Fixed unit_test, added another test #

Patch Set 5 : Fix unittest #

Total comments: 50

Patch Set 6 : Addressed comments #

Total comments: 8

Patch Set 7 : Store the MessageLoopProxy in the callback #

Total comments: 4

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+647 lines, -0 lines) Patch
A chrome/browser/policy/async_policy_loader.h View 1 2 3 4 5 6 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/browser/policy/async_policy_loader.cc View 1 2 3 4 5 6 1 chunk +125 lines, -0 lines 0 comments Download
A chrome/browser/policy/async_policy_provider.h View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/policy/async_policy_provider.cc View 1 2 3 4 5 6 7 1 chunk +126 lines, -0 lines 0 comments Download
A chrome/browser/policy/async_policy_provider_unittest.cc View 1 2 3 4 5 1 chunk +219 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Joao da Silva
CL 1/5: adding the AsyncPolicyProvider. The other are 2) update the mac provider 3) update ...
8 years, 6 months ago (2012-06-03 14:04:41 UTC) #1
Mattias Nissler (ping if slow)
One high-level comment: I liked the original idea of having the file watching outside the ...
8 years, 6 months ago (2012-06-04 08:48:25 UTC) #2
Joao da Silva
Thanks for the extensive review! Please have another look. WatchPath() and the watchers have been ...
8 years, 6 months ago (2012-06-04 14:05:06 UTC) #3
Mattias Nissler (ping if slow)
Couple more comments. However, I'm rather tired right now, so I'd like to get another ...
8 years, 6 months ago (2012-06-04 15:25:39 UTC) #4
Joao da Silva
http://codereview.chromium.org/10448118/diff/5010/chrome/browser/policy/async_policy_loader.h File chrome/browser/policy/async_policy_loader.h (right): http://codereview.chromium.org/10448118/diff/5010/chrome/browser/policy/async_policy_loader.h#newcode70 chrome/browser/policy/async_policy_loader.h:70: void Init(scoped_refptr<base::MessageLoopProxy> provider_loop, On 2012/06/04 15:25:39, Mattias Nissler wrote: ...
8 years, 6 months ago (2012-06-04 17:28:12 UTC) #5
Mattias Nissler (ping if slow)
LGTM with nits. http://codereview.chromium.org/10448118/diff/25002/chrome/browser/policy/async_policy_provider.cc File chrome/browser/policy/async_policy_provider.cc (right): http://codereview.chromium.org/10448118/diff/25002/chrome/browser/policy/async_policy_provider.cc#newcode125 chrome/browser/policy/async_policy_provider.cc:125: remove extra blank line http://codereview.chromium.org/10448118/diff/25002/chrome/browser/policy/async_policy_provider_unittest.cc File ...
8 years, 6 months ago (2012-06-04 18:09:02 UTC) #6
Joao da Silva
http://codereview.chromium.org/10448118/diff/25002/chrome/browser/policy/async_policy_provider.cc File chrome/browser/policy/async_policy_provider.cc (right): http://codereview.chromium.org/10448118/diff/25002/chrome/browser/policy/async_policy_provider.cc#newcode125 chrome/browser/policy/async_policy_provider.cc:125: On 2012/06/04 18:09:03, Mattias Nissler wrote: > remove extra ...
8 years, 6 months ago (2012-06-05 08:19:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/10448118/33001
8 years, 6 months ago (2012-06-05 11:38:15 UTC) #8
commit-bot: I haz the power
8 years, 6 months ago (2012-06-05 12:49:52 UTC) #9
Change committed as 140518

Powered by Google App Engine
This is Rietveld 408576698