|
Refactor OriginTrialPolicy to be an abstract interface in content/public/common
This also changes the initialization of the OriginTrialPolicy object: it is now lazily instantiated on the ChromeContentClient when first requested. Because the object is only requested by the validator, when tokens are actually received, this means that the constructor is certain to have access to any policy provided by the browser through the command line.
BUG= 589830
Committed: https://crrev.com/186a896dc1d498ab89c879e795fc101a35cf9d46
Cr-Commit-Position: refs/heads/master@{#401296}
Total comments: 2
Total comments: 2
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+253 lines, -212 lines) |
Patch |
 |
M |
chrome/app/chrome_main_delegate.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_common.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_content_client.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_content_client.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/common/origin_trials/chrome_origin_trial_policy.h
|
View
|
1
2
3
6
|
1 chunk |
+32 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/common/origin_trials/chrome_origin_trial_policy.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/common/origin_trials/chrome_origin_trial_policy_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
D |
chrome/common/origin_trials/origin_trial_key_manager.h
|
View
|
1
2
3
|
1 chunk |
+0 lines, -29 lines |
0 comments
|
Download
|
 |
D |
chrome/common/origin_trials/origin_trial_key_manager.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
 |
D |
chrome/common/origin_trials/origin_trial_key_manager_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -82 lines |
0 comments
|
Download
|
 |
M |
content/common/origin_trials/trial_token_validator.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/common/origin_trials/trial_token_validator_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+23 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/content_shell.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/common/content_client.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/public/common/content_client.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
content/public/common/origin_trial_policy.h
|
View
|
1
2
3
4
5
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/shell/common/shell_content_client.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/shell/common/shell_content_client.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -19 lines |
0 comments
|
Download
|
 |
A |
content/shell/common/shell_origin_trial_policy.h
|
View
|
1
2
3
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
content/shell/common/shell_origin_trial_policy.cc
|
View
|
1
2
3
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 28 (7 generated)
|