New issue
Advanced search Search tips

Issue 840078 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Timezone appears to be enforced by device policy, but isn't

Project Member Reported by michae...@chromium.org, May 5 2018

Issue description

Chrome Version: 67.0.3396.26
OS: Chrome 10575.22.0 (eve)

1. Visit time zone settings, ie chrome://settings/dateTime/timeZone
2. Ensure "Set automatically" is checked
3. Look for icon next to time zone selector

Expected: No policy icon next to time zone selector
Actual: Policy icon next to the time zone list with a tooltip says "This setting is enforced by your administrator."

The time zone dropdown menu is disabled, as expected, because the "Choose from list" option is unchecked. But the policy icon gives the appearance that the time zone can't be changed due to device policy. In reality, when I select "Choose from list", the policy icon disappears and the list becomes editable.

Note: My corp device does NOT have timezone related policies set (SystemTimezone nor SystemTimezoneAutomaticDetection) per chrome://policy.
 
The pref itself returns controlledBy: "DEVICE_POLICY", even when the timezone list is enabled and the icon isn't shown.

> chrome.settingsPrivate.getPref('cros.system.timezone', console.log.bind(console))

{controlledBy: "DEVICE_POLICY", enforcement: "ENFORCED", key: "cros.system.timezone", type: "STRING", value: "America/Los_Angeles"}
If we think time zone is controlled by policy, we always display this system preference (which is always controlled).

Otherwise we display user time zone preference.

Could you be in multi-profile mode with several users in session?
Basically my question is: could your time or time zone preferences be controlled by something, but we just incorrectly display reason?
It happens whether or not I'm in multiprofile mode. The issue persists across reboots.
Could you also check other preferences?

chrome.settingsPrivate.getPref('settings.timezone', console.log.bind(console))
chrome.settingsPrivate.getPref('generated.resolve_timezone_by_geolocation_on_off', console.log.bind(console))
chrome.settingsPrivate.getPref('generated.resolve_timezone_by_geolocation_method_short, console.log.bind(console))

{key: "settings.timezone", type: "STRING", value: "America/Los_Angeles"}

{key: "generated.resolve_timezone_by_geolocation_on_off", type: "BOOLEAN", value: true}

{key: "generated.resolve_timezone_by_geolocation_method_short", type: "NUMBER", value: 1}
Ah, I missed that you have automatic detection enabled, so this is not preventing you from changing settings. It's just incorrect icon ;)

Sign in to add a comment