Chromium Code Reviews| Index: chrome/browser/policy/test/policy_testserver.py |
| diff --git a/chrome/browser/policy/test/policy_testserver.py b/chrome/browser/policy/test/policy_testserver.py |
| index 09f3c4c62d00e99405ccd20573f47f5efd235b33..68e6580b70dcf3ebe4e9b1caa11cd648d829964c 100644 |
| --- a/chrome/browser/policy/test/policy_testserver.py |
| +++ b/chrome/browser/policy/test/policy_testserver.py |
| @@ -812,6 +812,18 @@ class PolicyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): |
| # username from the configuration file or use a default. |
| policy_data.username = policy.get('policy_user', 'user@example.com') |
| policy_data.device_id = token_info['device_id'] |
| + |
| + # Set affiliation IDs so that user was managed on the device. |
| + device_affiliation_ids = policy.get('device_affiliation_ids') |
| + if device_affiliation_ids: |
| + for aff_id in device_affiliation_ids: |
| + policy_data.device_affiliation_ids.append(aff_id) |
|
Mattias Nissler (ping if slow)
2015/07/29 20:08:13
Doesn't this work?
policy_data.device_affiliation
peletskyi
2015/07/30 11:02:27
Done.
|
| + |
| + user_affiliation_ids = policy.get('user_affiliation_ids') |
| + if user_affiliation_ids: |
| + for aff_id in user_affiliation_ids: |
|
Mattias Nissler (ping if slow)
2015/07/29 20:08:13
ditto
peletskyi
2015/07/30 11:02:27
Done.
|
| + policy_data.user_affiliation_ids.append(aff_id) |
| + |
| signed_data = policy_data.SerializeToString() |
| response.policy_data = signed_data |