Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Issue 1836433003: ChromeOS: Add SystemTimezoneAutomaticDetection policy. (Closed)

Created:
4 years, 9 months ago by Alexander Alekseev
Modified:
4 years, 8 months ago
Reviewers:
Thiemo Nagel, stevenjb
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, oshima+watch_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, arv+watch_chromium.org, asvitkine+watch_chromium.org, tnagel+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy and modifies all necessary components to support it. BUG=596690 TEST=unittest

Patch Set 1 #

Total comments: 28

Patch Set 2 : Update after review. #

Patch Set 3 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -67 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_chromeos.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_chromeos.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 3 chunks +4 lines, -24 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc View 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/proto/chrome_device_policy.proto View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.h View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 3 chunks +12 lines, -9 lines 0 comments Download
A chrome/browser/chromeos/system/timezone_resolver_manager.h View 1 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/system/timezone_resolver_manager.cc View 1 1 chunk +183 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/timezone_util.cc View 1 2 chunks +4 lines, -15 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 4 chunks +50 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/timezone/timezone_resolver.h View 2 chunks +19 lines, -1 line 0 comments Download
M chromeos/timezone/timezone_resolver.cc View 4 chunks +20 lines, -2 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 2 chunks +55 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836433003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836433003/1
4 years, 9 months ago (2016-03-25 11:36:30 UTC) #2
Alexander Alekseev
Please review: tnagel: *policy* stevenjb: all the rest
4 years, 9 months ago (2016-03-25 11:42:15 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-25 12:46:02 UTC) #6
stevenjb
This is another really large CL and it's hard to follow all of the changes. ...
4 years, 8 months ago (2016-03-28 23:23:18 UTC) #7
Alexander Alekseev
On 2016/03/28 23:23:18, stevenjb wrote: > This is another really large CL and it's hard ...
4 years, 8 months ago (2016-03-29 00:29:26 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836433003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836433003/20001
4 years, 8 months ago (2016-03-29 00:31:00 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/178321) ios_rel_device_ninja on ...
4 years, 8 months ago (2016-03-29 00:34:22 UTC) #12
stevenjb
https://codereview.chromium.org/1836433003/diff/1/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/1836433003/diff/1/chrome/browser/resources/options/browser_options.js#newcode1703 chrome/browser/resources/options/browser_options.js:1703: $('resolve-timezone-by-geolocation').checked = null; On 2016/03/29 00:29:26, Alexander Alekseev wrote: ...
4 years, 8 months ago (2016-03-29 00:39:41 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1836433003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1836433003/40001
4 years, 8 months ago (2016-03-29 01:12:10 UTC) #15
Alexander Alekseev
This patch was split into two: https://codereview.chromium.org/1837893003/ https://codereview.chromium.org/1843523002/ Closing this one.
4 years, 8 months ago (2016-03-29 02:08:28 UTC) #16
Alexander Alekseev
https://codereview.chromium.org/1836433003/diff/1/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/1836433003/diff/1/chrome/browser/resources/options/browser_options.js#newcode1703 chrome/browser/resources/options/browser_options.js:1703: $('resolve-timezone-by-geolocation').checked = null; On 2016/03/29 00:39:41, stevenjb wrote: > ...
4 years, 8 months ago (2016-03-29 03:59:24 UTC) #18
stevenjb
4 years, 8 months ago (2016-03-29 16:49:52 UTC) #19
Message was sent while issue was closed.
So, you are correct in that in the HTML the presence of the attribute
determines whether or not the element is checked, however in javascript you
can set the checked property to false, which is what we do elsewhere in the
code. I should have directed you here:

https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement


On Mon, Mar 28, 2016 at 8:59 PM, <alemate@chromium.org> wrote:

>
>
>
https://codereview.chromium.org/1836433003/diff/1/chrome/browser/resources/op...
> File chrome/browser/resources/options/browser_options.js (right):
>
>
>
https://codereview.chromium.org/1836433003/diff/1/chrome/browser/resources/op...
> chrome/browser/resources/options/browser_options.js:1703:
> $('resolve-timezone-by-geolocation').checked = null;
> On 2016/03/29 00:39:41, stevenjb wrote:
> > On 2016/03/29 00:29:26, Alexander Alekseev wrote:
> > > On 2016/03/28 23:23:17, stevenjb wrote:
> > > > false
> > >
> > > This doesn't work. It will stay checked unless "checked" attribute
> is deleted.
> > > Setting it value to false will not help.
> >
> > That's strange, are you certain? The type of input.checked is Boolean.
> I don't
> > see us doing that elsewhere.
> >
> >
> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
>
> " the presence of this Boolean attribute indicates that the control is
> selected by default; otherwise it is ignored."
>
> This turned out to be the exact description. It took me a while to
> figure out why setting this value to false doesn't work. The key is "the
> presence of this attribute".
>
> https://codereview.chromium.org/1836433003/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698