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

Issue 9911029: Refactored the CloudPolicyProvider so that it becomes initialized once and stays initialized. (Closed)

Created:
8 years, 8 months ago by Joao da Silva
Modified:
8 years, 8 months ago
CC:
chromium-reviews, rginda+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Refactored the CloudPolicyProvider so that it becomes initialized once and stays initialized. Also added device policy command line flags to InProcessBrowserTest, so that browser_tests run with this provider on ChromeOS. BUG=120967 TEST=Everything works as before Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=130067

Patch Set 1 #

Patch Set 2 : Updated expectations in failing browser_tests #

Total comments: 14

Patch Set 3 : Using mock caches in the unittest #

Total comments: 14

Patch Set 4 : Addressed comments #

Patch Set 5 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+362 lines, -464 lines) Patch
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 4 chunks +23 lines, -17 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider.h View 1 2 1 chunk +65 lines, -22 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider.cc View 1 2 3 1 chunk +94 lines, -2 lines 0 comments Download
D chrome/browser/policy/cloud_policy_provider_impl.h View 1 chunk +0 lines, -77 lines 0 comments Download
D chrome/browser/policy/cloud_policy_provider_impl.cc View 1 chunk +0 lines, -113 lines 0 comments Download
M chrome/browser/policy/cloud_policy_provider_unittest.cc View 1 2 3 2 chunks +169 lines, -225 lines 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/policy/user_policy_disk_cache.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Joao da Silva
Refactor of the CloudPolicyProvider, as discussed today. Please review, thanks!
8 years, 8 months ago (2012-03-29 21:21:34 UTC) #1
Mattias Nissler (ping if slow)
I have looked at the provider parts. What I didn't check is the DevicePolicyCache test ...
8 years, 8 months ago (2012-03-30 08:48:46 UTC) #2
Joao da Silva
PTAL https://chromiumcodereview.appspot.com/9911029/diff/7001/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc File chrome/browser/chromeos/login/existing_user_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/9911029/diff/7001/chrome/browser/chromeos/login/existing_user_controller_browsertest.cc#newcode138 chrome/browser/chromeos/login/existing_user_controller_browsertest.cc:138: .WillRepeatedly(Return(false)); On 2012/03/30 08:48:46, Mattias Nissler wrote: > ...
8 years, 8 months ago (2012-03-30 10:09:23 UTC) #3
Mattias Nissler (ping if slow)
https://chromiumcodereview.appspot.com/9911029/diff/7001/chrome/browser/chromeos/login/login_browsertest.cc File chrome/browser/chromeos/login/login_browsertest.cc (right): https://chromiumcodereview.appspot.com/9911029/diff/7001/chrome/browser/chromeos/login/login_browsertest.cc#newcode38 chrome/browser/chromeos/login/login_browsertest.cc:38: .WillRepeatedly(Return(false)); On 2012/03/30 10:09:23, Joao da Silva wrote: > ...
8 years, 8 months ago (2012-03-30 11:46:35 UTC) #4
Joao da Silva
PTYAL :-) https://chromiumcodereview.appspot.com/9911029/diff/18002/chrome/browser/policy/cloud_policy_provider.cc File chrome/browser/policy/cloud_policy_provider.cc (right): https://chromiumcodereview.appspot.com/9911029/diff/18002/chrome/browser/policy/cloud_policy_provider.cc#newcode31 chrome/browser/policy/cloud_policy_provider.cc:31: DCHECK(caches_[CACHE_USER] == NULL); On 2012/03/30 11:46:35, Mattias ...
8 years, 8 months ago (2012-03-30 16:36:58 UTC) #5
Mattias Nissler (ping if slow)
LGTM!
8 years, 8 months ago (2012-03-30 16:55:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/9911029/14008
8 years, 8 months ago (2012-03-30 16:56:11 UTC) #7
commit-bot: I haz the power
Try job failure for 9911029-14008 (retry) (retry) on win_rel for step "browser_tests" (clobber build). It's ...
8 years, 8 months ago (2012-03-30 21:04:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/9911029/14008
8 years, 8 months ago (2012-03-31 10:29:34 UTC) #9
commit-bot: I haz the power
Try job failure for 9911029-14008 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 8 months ago (2012-03-31 13:51:06 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/9911029/14008
8 years, 8 months ago (2012-03-31 14:42:08 UTC) #11
commit-bot: I haz the power
Can't apply patch for file chrome/browser/policy/browser_policy_connector.cc. While running patch -p1 --forward --force; patching file chrome/browser/policy/browser_policy_connector.cc ...
8 years, 8 months ago (2012-03-31 14:42:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/9911029/18008
8 years, 8 months ago (2012-03-31 18:41:11 UTC) #13
commit-bot: I haz the power
8 years, 8 months ago (2012-03-31 22:02:26 UTC) #14
Change committed as 130067

Powered by Google App Engine
This is Rietveld 408576698