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

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

Created:
4 years, 8 months ago by Alexander Alekseev
Modified:
4 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, asvitkine+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, tnagel+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@596690--Implement-better-timezone-detection--refactoring-before-policy
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,browsertest Committed: https://crrev.com/fc3524a0efece0f2b55b08980b74c23be65ed8dd Cr-Commit-Position: refs/heads/master@{#384768} Committed: https://crrev.com/d70e82f6d166b8f1548e127aaef2114d45a701e3 Cr-Commit-Position: refs/heads/master@{#385157}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update after review. #

Patch Set 3 : Update after review. #

Patch Set 4 : Rebased. #

Total comments: 4

Patch Set 5 : Implemented browser test for the policy. #

Patch Set 6 : Moved policy to SystemTimezone. #

Total comments: 4

Patch Set 7 : Update after review. #

Total comments: 2

Patch Set 8 : Update after review. #

Total comments: 8

Patch Set 9 : Update after review. #

Total comments: 6

Patch Set 10 : Fix tests. #

Patch Set 11 : Rebased. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -12 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/proto/chrome_device_policy.proto View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 4 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/system/timezone_resolver_manager.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/timezone_resolver_manager.cc View 1 2 3 4 5 6 chunks +59 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +150 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 9 10 5 chunks +65 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 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 2 chunks +55 lines, -1 line 2 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (28 generated)
Alexander Alekseev
This is the second part of https://codereview.chromium.org/1836433003/ Please review: tnagel@: *policy* stevenjb@: all the rest ...
4 years, 8 months ago (2016-03-29 03:22:06 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843523002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843523002/1
4 years, 8 months ago (2016-03-29 03:22:32 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-29 04:43:05 UTC) #6
stevenjb
https://codereview.chromium.org/1843523002/diff/1/chrome/browser/chromeos/preferences.h File chrome/browser/chromeos/preferences.h (right): https://codereview.chromium.org/1843523002/diff/1/chrome/browser/chromeos/preferences.h#newcode50 chrome/browser/chromeos/preferences.h:50: }; Why not include the pb.h file directly where ...
4 years, 8 months ago (2016-03-29 17:01:24 UTC) #7
Alexander Alekseev
https://codereview.chromium.org/1843523002/diff/1/chrome/browser/chromeos/preferences.h File chrome/browser/chromeos/preferences.h (right): https://codereview.chromium.org/1843523002/diff/1/chrome/browser/chromeos/preferences.h#newcode50 chrome/browser/chromeos/preferences.h:50: }; On 2016/03/29 17:01:24, stevenjb wrote: > Why not ...
4 years, 8 months ago (2016-03-30 03:07:23 UTC) #8
Alexander Alekseev
4 years, 8 months ago (2016-03-30 03:07:26 UTC) #9
Alexander Alekseev
-tnagel +cschuet Please review: cschuet@: *policy*
4 years, 8 months ago (2016-03-30 12:34:16 UTC) #11
cschuet (SLOW)
https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode892 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:892: new base::FundamentalValue(policy.system_timezone_automatic_detection() Use DecodeIntegerValue() which performs range checks as ...
4 years, 8 months ago (2016-03-30 13:08:48 UTC) #14
Alexander Alekseev
Please take a look at the policy test. https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode892 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:892: new ...
4 years, 8 months ago (2016-03-31 06:51:50 UTC) #15
Alexander Alekseev
I moved the policy to SystemTimezone proto. I could not invent correct data for the ...
4 years, 8 months ago (2016-03-31 08:10:37 UTC) #16
cschuet (SLOW)
On 2016/03/31 06:51:50, Alexander Alekseev wrote: > Please take a look at the policy test. ...
4 years, 8 months ago (2016-03-31 08:14:50 UTC) #17
cschuet (SLOW)
https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/policy_browsertest.cc#newcode4003 chrome/browser/policy/policy_browsertest.cc:4003: // const char kTestUser1Hash[] = "test1@domain.com-hash"; remove commented code.
4 years, 8 months ago (2016-03-31 08:15:03 UTC) #18
cschuet (SLOW)
On 2016/03/31 08:15:03, cschuet (SLOW) wrote: > https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/policy_browsertest.cc > File chrome/browser/policy/policy_browsertest.cc (right): > > https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/policy_browsertest.cc#newcode4003 ...
4 years, 8 months ago (2016-03-31 08:54:25 UTC) #19
cschuet (SLOW)
https://codereview.chromium.org/1843523002/diff/100001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1843523002/diff/100001/components/policy/resources/policy_templates.json#newcode5727 components/policy/resources/policy_templates.json:5727: 'timezone': { 'type': 'main' }, This should be 'type': ...
4 years, 8 months ago (2016-03-31 08:55:22 UTC) #20
Alexander Alekseev
> Sorry, for the confusion: Your original implementation looked fine. I just > wanted you ...
4 years, 8 months ago (2016-03-31 10:24:38 UTC) #21
Alexander Alekseev
+bartfab@ : for policy_templates.json (as owner) Please review.
4 years, 8 months ago (2016-03-31 10:27:26 UTC) #24
cschuet (SLOW)
On 2016/03/31 10:24:38, Alexander Alekseev wrote: > > Sorry, for the confusion: Your original implementation ...
4 years, 8 months ago (2016-03-31 11:58:11 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843523002/120001
4 years, 8 months ago (2016-03-31 12:20:20 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/189955)
4 years, 8 months ago (2016-03-31 12:22:50 UTC) #29
stevenjb
lgtm https://codereview.chromium.org/1843523002/diff/120001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1843523002/diff/120001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode715 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:715: key::kSystemTimezoneAutomaticDetection, nit: move to prev line
4 years, 8 months ago (2016-03-31 16:12:04 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843523002/120001
4 years, 8 months ago (2016-03-31 21:30:54 UTC) #32
Alexander Alekseev
+isherman@ for histograms.xml . Please review. https://codereview.chromium.org/1843523002/diff/120001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right): https://codereview.chromium.org/1843523002/diff/120001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc#newcode715 chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:715: key::kSystemTimezoneAutomaticDetection, On 2016/03/31 ...
4 years, 8 months ago (2016-03-31 21:34:29 UTC) #34
Ilya Sherman
histograms.xml lgtm
4 years, 8 months ago (2016-04-01 07:08:27 UTC) #35
bartfab (slow)
policy_templates.json LGTM with nits. https://codereview.chromium.org/1843523002/diff/140001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1843523002/diff/140001/components/policy/resources/policy_templates.json#newcode8405 components/policy/resources/policy_templates.json:8405: 'caption': '''Always send WiFi acess-points ...
4 years, 8 months ago (2016-04-01 14:44:50 UTC) #36
Alexander Alekseev
I also replaced enum values in policy_templates with Camel case like this: 'AUTOMATIC_TIMEZONE_DETECTION_USERS_DECIDE' => 'TimezoneAutomaticDetectionUsersDecide'. ...
4 years, 8 months ago (2016-04-01 23:59:33 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843523002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843523002/160001
4 years, 8 months ago (2016-04-02 00:00:57 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-02 01:18:03 UTC) #42
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/fc3524a0efece0f2b55b08980b74c23be65ed8dd Cr-Commit-Position: refs/heads/master@{#384768}
4 years, 8 months ago (2016-04-02 01:19:38 UTC) #44
Dan Beam
https://codereview.chromium.org/1843523002/diff/160001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/1843523002/diff/160001/chrome/browser/resources/options/browser_options.js#newcode128 chrome/browser/resources/options/browser_options.js:128: * @private {boolean} 0 isn't a {boolean} https://codereview.chromium.org/1843523002/diff/160001/chrome/browser/resources/options/browser_options.js#newcode1706 chrome/browser/resources/options/browser_options.js:1706: ...
4 years, 8 months ago (2016-04-02 01:39:14 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843523002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843523002/180001
4 years, 8 months ago (2016-04-05 07:28:03 UTC) #50
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/13918) ios_dbg_simulator_ninja on ...
4 years, 8 months ago (2016-04-05 07:30:01 UTC) #52
Alexander Alekseev
https://codereview.chromium.org/1843523002/diff/160001/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/1843523002/diff/160001/chrome/browser/resources/options/browser_options.js#newcode128 chrome/browser/resources/options/browser_options.js:128: * @private {boolean} On 2016/04/02 01:39:14, Dan Beam wrote: ...
4 years, 8 months ago (2016-04-05 08:03:38 UTC) #53
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843523002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843523002/200001
4 years, 8 months ago (2016-04-05 08:26:07 UTC) #55
bartfab (slow)
Still LGTM
4 years, 8 months ago (2016-04-05 09:33:53 UTC) #56
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-05 09:35:25 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843523002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843523002/200001
4 years, 8 months ago (2016-04-05 12:16:13 UTC) #61
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-04-05 12:21:49 UTC) #63
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/d70e82f6d166b8f1548e127aaef2114d45a701e3 Cr-Commit-Position: refs/heads/master@{#385157}
4 years, 8 months ago (2016-04-05 12:23:20 UTC) #65
Andrew T Wilson (Slow)
https://codereview.chromium.org/1843523002/diff/200001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1843523002/diff/200001/components/policy/resources/policy_templates.json#newcode140 components/policy/resources/policy_templates.json:140: # For your editing convenience: highest ID currently used: ...
4 years, 8 months ago (2016-04-07 12:07:20 UTC) #67
Alexander Alekseev
4 years, 8 months ago (2016-04-08 01:15:05 UTC) #68
Message was sent while issue was closed.
https://codereview.chromium.org/1843523002/diff/200001/components/policy/reso...
File components/policy/resources/policy_templates.json (right):

https://codereview.chromium.org/1843523002/diff/200001/components/policy/reso...
components/policy/resources/policy_templates.json:140: #   For your editing
convenience: highest ID currently used: 325
On 2016/04/07 12:07:20, Andrew T Wilson (Slow) wrote:
> Please remember to update this ID in the future when adding a new policy.

I am sorry, I missed this.

Powered by Google App Engine
This is Rietveld 408576698