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
4 years, 8 months ago
(2016-03-29 04:43:05 UTC)
#6
Dry run: This issue passed the CQ dry run.
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
Description was changed from ========== ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy ...
4 years, 8 months ago
(2016-03-30 12:34:33 UTC)
#12
Description was changed from
==========
ChromeOS: Add SystemTimezoneAutomaticDetection policy.
This CL adds SystemTimezoneAutomaticDetection device policy
and modifies all necessary components to support it.
BUG=596690
TEST=unittest
==========
to
==========
ChromeOS: Add SystemTimezoneAutomaticDetection policy.
This CL adds SystemTimezoneAutomaticDetection device policy
and modifies all necessary components to support it.
BUG=596690
TEST=unittest
==========
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
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
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
I moved the policy to SystemTimezone proto.
I could not invent correct data for the 'policy_templates.json' and
'policy_test_cases.json' .
cschuet@, could you help me with this data?
Also we now do not have UMA monitoring for this value.
cschuet@: could you suggest the way we could implement it?
I personally think that the previous patch set (see patch set 5) is much
simpler...
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
On 2016/03/31 06:51:50, Alexander Alekseev wrote:
> Please take a look at the policy test.
>
>
https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos...
> File chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc (right):
>
>
https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos...
> chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc:892: new
> base::FundamentalValue(policy.system_timezone_automatic_detection()
> On 2016/03/30 13:08:48, cschuet (SLOW) wrote:
> > Use DecodeIntegerValue() which performs range checks as well.
>
> Done.
>
>
https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos...
> File chrome/browser/chromeos/policy/proto/chrome_device_policy.proto (right):
>
>
https://codereview.chromium.org/1843523002/diff/60001/chrome/browser/chromeos...
> chrome/browser/chromeos/policy/proto/chrome_device_policy.proto:690: message
> SystemTimezoneAutomaticDetectionProto {
> On 2016/03/30 13:08:48, cschuet (SLOW) wrote:
> > Rather than creating a new submessage for just this policy stick it into the
> > existing SystemTimezoneProto message.
>
> I will try, but this seems to be tricky.
> SystemTimezone is not mapped to any Local State preference.
> It was implemented before automatic mappings were implemented.
> We also do not have any tests for SystemTimezone.
LGTM
4 years, 8 months ago
(2016-03-31 08:54:25 UTC)
#19
On 2016/03/31 08:15:03, cschuet (SLOW) wrote:
>
https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/...
> File chrome/browser/policy/policy_browsertest.cc (right):
>
>
https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/...
> chrome/browser/policy/policy_browsertest.cc:4003: // const char
kTestUser1Hash[]
> = mailto:"test1@domain.com-hash";
> remove commented code.
Sorry, for the confusion: Your original implementation looked fine. I just
wanted you to move the enum policy you have defined into the same proto message
like the other system time related policy. Don't merge the policies in
policy_templates.json. Keep them separate. My comment was just about the way you
are encoding the policy in the proto.
not lgtm
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
Description was changed from ========== ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy ...
4 years, 8 months ago
(2016-03-31 10:24:57 UTC)
#22
Description was changed from
==========
ChromeOS: Add SystemTimezoneAutomaticDetection policy.
This CL adds SystemTimezoneAutomaticDetection device policy
and modifies all necessary components to support it.
BUG=596690
TEST=unittest
==========
to
==========
ChromeOS: Add SystemTimezoneAutomaticDetection policy.
This CL adds SystemTimezoneAutomaticDetection device policy
and modifies all necessary components to support it.
BUG=596690
TEST=unittest,browsertest
==========
+bartfab@ : for policy_templates.json (as owner) Please review.
4 years, 8 months ago
(2016-03-31 10:27:26 UTC)
#24
+bartfab@ : for
policy_templates.json (as owner)
Please review.
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
On 2016/03/31 10:24:38, Alexander Alekseev wrote:
> > Sorry, for the confusion: Your original implementation looked fine. I just
> > wanted you to move the enum policy you have defined into the same proto
> message
> > like the other system time related policy. Don't merge the policies in
> > policy_templates.json. Keep them separate. My comment was just about the way
> you
> > are encoding the policy in the proto.
>
> Did you mean something like this? When an entry in policy templates doesn't
have
> separate message? I didn't know we support this.
>
> PTAL.
This is exactly what I meant. I am not sure what you mean by "When an entry in
policy templates doesn't have separate message". policy_templates.json is
essentially a flat file. Granted it does support one level of grouping, but note
that this grouping is only cosmetic. It is only reflected in the visualization
of the generated .kml files and more importantly does not correspond to the
grouping in the .proto file. The automatic matching that exists for user
policies does not exist for device policies which you can see from the fact that
the device policy coder is handwritten.
For the .proto I believe this new policy belongs in the same proto submesage as
the other timezone related policies do, especially as there is an interaction
between them (as you have pointed out in the description). For
policy_templates.json, I think it should be a top level policy (just as the
other timezone policies). But I will also let bartfab@ chime in.
For me, this LGTM now.
>
>
https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/...
> File chrome/browser/policy/policy_browsertest.cc (right):
>
>
https://codereview.chromium.org/1843523002/diff/100001/chrome/browser/policy/...
> chrome/browser/policy/policy_browsertest.cc:4003: // const char
kTestUser1Hash[]
> = mailto:"test1@domain.com-hash";
> On 2016/03/31 08:15:02, cschuet (SLOW) wrote:
> > remove commented code.
>
> Done.
>
>
https://codereview.chromium.org/1843523002/diff/100001/components/policy/reso...
> File components/policy/resources/policy_templates.json (right):
>
>
https://codereview.chromium.org/1843523002/diff/100001/components/policy/reso...
> components/policy/resources/policy_templates.json:5727: 'timezone': { 'type':
> 'main' },
> On 2016/03/31 08:55:21, cschuet (SLOW) wrote:
> > This should be 'type': 'int-enum'.
>
> I reverted this.
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org to run a CQ dry run
4 years, 8 months ago
(2016-03-31 12:20:05 UTC)
#26
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
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
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
4 years, 8 months ago
(2016-04-01 14:44:50 UTC)
#36
policy_templates.json LGTM with nits.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
File components/policy/resources/policy_templates.json (right):
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8405: 'caption': '''Always
send WiFi acess-points to server.use fine-grained timezone detection (send
curently visible WiFi access points to Geolocation API to better locate
geographical position).''',
Nit 1: s/server.use/server and use/
Nit 2: These captions should be really, really short. Please putp lengthy
explanations in the policy 'desc' only.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8416: 'tags': [],
This should be tagged with "google-sharing" as
AUTOMATIC_TIMEZONE_DETECTION_SEND_WIFI_ACCESS_POINTS causes Chrome OS to send
the list of WiFi access points.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8421: If set to
AUTOMATIC_TIMEZONE_DETECTION_DISABLED, automatic timezone controls in
chrome://settings will be disabled. Automatic timezone detection will be always
off. Timezone could be controlled either by SystemTimezone policy or by timezone
selector in chrome://settings.
"Timezone could be controlled either by SystemTimezone" does not make sense here
- if SystemTimezone is set, this policy here is ignored, so its value is
irrelevant.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8429: If SystemTimezone policy
is set. it overrides this policy. In this case automatic timezone detection is
completely disabled.''',
Nit: s/set./set,/
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
I also replaced enum values in policy_templates with Camel case like this:
'AUTOMATIC_TIMEZONE_DETECTION_USERS_DECIDE' =>
'TimezoneAutomaticDetectionUsersDecide'. It looks like camel case is more often
used in policy_templates for enums.
Thank you all! I'll commit this now.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
File components/policy/resources/policy_templates.json (right):
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8405: 'caption': '''Always
send WiFi acess-points to server.use fine-grained timezone detection (send
curently visible WiFi access points to Geolocation API to better locate
geographical position).''',
On 2016/04/01 14:44:50, bartfab (slow) wrote:
> Nit 1: s/server.use/server and use/
> Nit 2: These captions should be really, really short. Please putp lengthy
> explanations in the policy 'desc' only.
Done.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8416: 'tags': [],
On 2016/04/01 14:44:50, bartfab (slow) wrote:
> This should be tagged with "google-sharing" as
> AUTOMATIC_TIMEZONE_DETECTION_SEND_WIFI_ACCESS_POINTS causes Chrome OS to send
> the list of WiFi access points.
Done.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8421: If set to
AUTOMATIC_TIMEZONE_DETECTION_DISABLED, automatic timezone controls in
chrome://settings will be disabled. Automatic timezone detection will be always
off. Timezone could be controlled either by SystemTimezone policy or by timezone
selector in chrome://settings.
On 2016/04/01 14:44:50, bartfab (slow) wrote:
> "Timezone could be controlled either by SystemTimezone" does not make sense
here
> - if SystemTimezone is set, this policy here is ignored, so its value is
> irrelevant.
Done.
https://codereview.chromium.org/1843523002/diff/140001/components/policy/reso...
components/policy/resources/policy_templates.json:8429: If SystemTimezone policy
is set. it overrides this policy. In this case automatic timezone detection is
completely disabled.''',
On 2016/04/01 14:44:50, bartfab (slow) wrote:
> Nit: s/set./set,/
Done.
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
4 years, 8 months ago
(2016-04-01 23:59:47 UTC)
#38
The patchset sent to the CQ was uploaded after l-g-t-m from stevenjb@chromium.org, cschuet@chromium.org, bartfab@chromium.org, isherman@chromium.org ...
4 years, 8 months ago
(2016-04-01 23:59:48 UTC)
#39
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
Description was changed from ========== ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy ...
4 years, 8 months ago
(2016-04-02 01:18:01 UTC)
#41
Message was sent while issue was closed.
Description was changed from
==========
ChromeOS: Add SystemTimezoneAutomaticDetection policy.
This CL adds SystemTimezoneAutomaticDetection device policy
and modifies all necessary components to support it.
BUG=596690
TEST=unittest,browsertest
==========
to
==========
ChromeOS: Add SystemTimezoneAutomaticDetection policy.
This CL adds SystemTimezoneAutomaticDetection device policy
and modifies all necessary components to support it.
BUG=596690
TEST=unittest,browsertest
==========
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago
(2016-04-02 01:18:03 UTC)
#42
Message was sent while issue was closed.
Committed patchset #9 (id:160001)
commit-bot: I haz the power
Description was changed from ========== ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy ...
4 years, 8 months ago
(2016-04-02 01:19:37 UTC)
#43
Message was sent while issue was closed.
Description was changed from
==========
ChromeOS: Add SystemTimezoneAutomaticDetection policy.
This CL adds SystemTimezoneAutomaticDetection device policy
and modifies all necessary components to support it.
BUG=596690
TEST=unittest,browsertest
==========
to
==========
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}
==========
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
Description was changed from ========== ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy ...
4 years, 8 months ago
(2016-04-02 01:55:58 UTC)
#47
Message was sent while issue was closed.
Description was changed from
==========
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}
==========
to
==========
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}
==========
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
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
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
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
Description was changed from ========== ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy ...
4 years, 8 months ago
(2016-04-05 12:21:45 UTC)
#62
Message was sent while issue was closed.
Description was changed from
==========
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}
==========
to
==========
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}
==========
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago
(2016-04-05 12:21:49 UTC)
#63
Message was sent while issue was closed.
Committed patchset #11 (id:200001)
commit-bot: I haz the power
Description was changed from ========== ChromeOS: Add SystemTimezoneAutomaticDetection policy. This CL adds SystemTimezoneAutomaticDetection device policy ...
4 years, 8 months ago
(2016-04-05 12:23:18 UTC)
#64
Message was sent while issue was closed.
Description was changed from
==========
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}
==========
to
==========
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}
==========
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
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
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-08 01:15:05 UTC)
#68
Issue 1843523002: ChromeOS: Add SystemTimezoneAutomaticDetection policy.
(Closed)
Created 4 years, 8 months ago by Alexander Alekseev
Modified 4 years, 8 months ago
Reviewers: stevenjb, cschuet (SLOW), bartfab (slow), Ilya Sherman, Andrew T Wilson (Slow)
Base URL: https://chromium.googlesource.com/chromium/src.git@596690--Implement-better-timezone-detection--refactoring-before-policy
Comments: 30