| Index: chrome/browser/chromeos/settings/device_settings_provider.cc
|
| diff --git a/chrome/browser/chromeos/settings/device_settings_provider.cc b/chrome/browser/chromeos/settings/device_settings_provider.cc
|
| index 031449c520a84dd7f78834fcba96f17644227d04..f91b2cc7d6c2ba0427a432a3994ad8a71b7c0f46 100644
|
| --- a/chrome/browser/chromeos/settings/device_settings_provider.cc
|
| +++ b/chrome/browser/chromeos/settings/device_settings_provider.cc
|
| @@ -683,15 +683,9 @@ void DeviceSettingsProvider::UpdateValuesCache(
|
| TrustedStatus trusted_status) {
|
| PrefValueMap new_values_cache;
|
|
|
| - // If the device is not managed, or is consumer-managed, we set the device
|
| - // owner value.
|
| - if (policy_data.has_username() &&
|
| - (policy::GetManagementMode(policy_data) ==
|
| - policy::MANAGEMENT_MODE_LOCAL_OWNER ||
|
| - policy::GetManagementMode(policy_data) ==
|
| - policy::MANAGEMENT_MODE_CONSUMER_MANAGED)) {
|
| + // If the device is not managed, we set the device owner value.
|
| + if (policy_data.has_username() && !policy_data.has_request_token())
|
| new_values_cache.SetString(kDeviceOwner, policy_data.username());
|
| - }
|
|
|
| if (policy_data.has_service_account_identity()) {
|
| new_values_cache.SetString(kServiceAccountIdentity,
|
|
|