|
UserPolicyCache only becomes ready after policy has been fetched.
This behavior is only forced on enterprise devices, and for logged in users whose username matches the enrollment domain.
This requires waiting for a couple of things:
- oauth token fetching
- dm server register token fetching
- user policy fetching
The cache resumes initialization too if any of these steps fails. Fetching of OAuth tokens usually happens after Profile creation, but in this case it will be done earlier so that the policy fetching can proceed before the Profile is fully created.
This fixes the races between policy and sync, startup pages, etc.
BUG= chromium-os:17698
TEST=Logins of enterprise users on enrolled ChromeOS devices waits for a policy fetch before proceeding.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110108
Total comments: 10
Total comments: 6
Total comments: 7
Total comments: 3
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+897 lines, -112 lines) |
Patch |
 |
M |
chrome/browser/chrome_browser_main.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/login_browsertest.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/login_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
19 chunks |
+142 lines, -49 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/chromeos/login/login_utils_browsertest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+457 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/gaia/gaia_oauth_fetcher.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/net/gaia/gaia_oauth_fetcher.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/browser_policy_connector.h
|
View
|
1
2
|
3 chunks |
+13 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/browser_policy_connector.cc
|
View
|
1
2
3
4
5
|
6 chunks |
+35 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud_policy_cache_base.h
|
View
|
1
|
2 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud_policy_controller.cc
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud_policy_controller_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+71 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud_policy_provider_unittest.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/cloud_policy_subsystem_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/device_policy_cache.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/device_policy_cache.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/device_token_fetcher.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/device_token_fetcher_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+57 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/enterprise_metrics_browsertest.cc
|
View
|
1
|
6 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/user_policy_cache.h
|
View
|
1
|
3 chunks |
+16 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/user_policy_cache.cc
|
View
|
1
2
|
4 chunks |
+19 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/policy/user_policy_cache_unittest.cc
|
View
|
1
2
|
13 chunks |
+40 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
1 comment
|
Download
|
 |
M |
chrome/test/base/testing_browser_process.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_browser_process.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|