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

Issue 1775023002: Enterprise policy to prevent queries to the Quirks Server (Closed)

Created:
4 years, 9 months ago by Greg Levin
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tnagel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enterprise policy to prevent queries to the Quirks Server BUG=567791 TEST=Set policy to disable queries, then run OOBE on device that would otherwise download an icc file (see Issue 549349 for details). Observe that no icc file is downloaded. Committed: https://crrev.com/5b821b5e52442ba95bcbecf788888c6435f5c6a5 Cr-Commit-Position: refs/heads/master@{#384927}

Patch Set 1 #

Total comments: 13

Patch Set 2 : First round of reviews #

Total comments: 12

Patch Set 3 : Merge #

Total comments: 10

Patch Set 4 : Code review, wire policy into Quirks code (and merge) #

Patch Set 5 : Add Quirks policy browser test #

Total comments: 9

Patch Set 6 : Logic fix, small review fixes, merge #

Patch Set 7 : Fix display unit test #

Total comments: 2

Patch Set 8 : Remove default_for_enterprise_users #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -30 lines) Patch
M ash/display/display_color_manager_chromeos.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ash/display/display_color_manager_chromeos_unittest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/display/quirks_browsertest.cc View 1 2 3 4 2 chunks +14 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/display/quirks_manager_delegate_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/display/quirks_manager_delegate_impl.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc View 1 2 3 3 chunks +22 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/proto/chrome_device_policy.proto View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_provider.cc View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chromeos/settings/cros_settings_names.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/settings/cros_settings_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 2 chunks +27 lines, -1 line 0 comments Download
M components/quirks/quirks_manager.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M components/quirks/quirks_manager.cc View 1 2 3 4 5 6 chunks +17 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
Thiemo Nagel
https://codereview.chromium.org/1775023002/diff/1/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1775023002/diff/1/components/policy/resources/policy_templates.json#newcode8225 components/policy/resources/policy_templates.json:8225: 'name': 'QuirksClientEnabled', This should be a device policy, thus ...
4 years, 9 months ago (2016-03-08 20:07:58 UTC) #2
Greg Levin
Please have another look! https://codereview.chromium.org/1775023002/diff/1/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1775023002/diff/1/components/policy/resources/policy_templates.json#newcode8225 components/policy/resources/policy_templates.json:8225: 'name': 'QuirksClientEnabled', On 2016/03/08 20:07:58, ...
4 years, 9 months ago (2016-03-14 17:29:47 UTC) #3
Thiemo Nagel
https://codereview.chromium.org/1775023002/diff/1/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1775023002/diff/1/components/policy/resources/policy_templates.json#newcode8225 components/policy/resources/policy_templates.json:8225: 'name': 'QuirksClientEnabled', > How about DeviceQuirksDownloadEnabled? SGTM. https://codereview.chromium.org/1775023002/diff/1/components/policy/resources/policy_templates.json#newcode8230 components/policy/resources/policy_templates.json:8230: ...
4 years, 9 months ago (2016-03-23 14:53:24 UTC) #4
Greg Levin
+oshima@ : chrome/browser/chromeos/display/* chrome/browser/chromeos/settings/device_settings_provider.cc chromeos/settings/* components/quirks/* +holte@ : histograms.xml Please have a look! https://codereview.chromium.org/1775023002/diff/20001/chrome/browser/chromeos/policy/device_policy_decoder_chromeos.cc File ...
4 years, 9 months ago (2016-03-24 23:21:40 UTC) #6
Steven Holte
histograms.xml lgtm
4 years, 9 months ago (2016-03-25 02:00:01 UTC) #7
Greg Levin
Note: I copied policy browser test code from https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/chromeos/policy/device_system_use_24hour_clock_browsertest.cc and Quirks browser test code from ...
4 years, 9 months ago (2016-03-25 18:06:57 UTC) #8
oshima
lgtm with nits & q https://codereview.chromium.org/1775023002/diff/80001/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc File chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc (right): https://codereview.chromium.org/1775023002/diff/80001/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc#newcode46 chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc:46: ASSERT_TRUE(created); nit: << error; ...
4 years, 8 months ago (2016-03-31 20:34:37 UTC) #9
Andrew T Wilson (Slow)
lgtm https://codereview.chromium.org/1775023002/diff/80001/chrome/browser/chromeos/settings/device_settings_provider.cc File chrome/browser/chromeos/settings/device_settings_provider.cc (right): https://codereview.chromium.org/1775023002/diff/80001/chrome/browser/chromeos/settings/device_settings_provider.cc#newcode59 chrome/browser/chromeos/settings/device_settings_provider.cc:59: kAllowBluetooth, thanks for moving this to the right ...
4 years, 8 months ago (2016-04-01 13:58:15 UTC) #11
Greg Levin
https://codereview.chromium.org/1775023002/diff/80001/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc File chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc (right): https://codereview.chromium.org/1775023002/diff/80001/chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc#newcode46 chrome/browser/chromeos/policy/device_quirks_policy_browsertest.cc:46: ASSERT_TRUE(created); On 2016/03/31 20:34:37, oshima wrote: > nit: << ...
4 years, 8 months ago (2016-04-01 18:34:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775023002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775023002/100001
4 years, 8 months ago (2016-04-01 19:39:07 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/148123)
4 years, 8 months ago (2016-04-01 20:03:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775023002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775023002/120001
4 years, 8 months ago (2016-04-01 20:28:01 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/189948)
4 years, 8 months ago (2016-04-01 23:07:53 UTC) #22
Andrew T Wilson (Slow)
https://codereview.chromium.org/1775023002/diff/120001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/1775023002/diff/120001/components/policy/resources/policy_templates.json#newcode8398 components/policy/resources/policy_templates.json:8398: If this policy is true or not configured then ...
4 years, 8 months ago (2016-04-04 08:23:34 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775023002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775023002/140001
4 years, 8 months ago (2016-04-04 15:27:38 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-04 16:42:57 UTC) #27
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/5b821b5e52442ba95bcbecf788888c6435f5c6a5 Cr-Commit-Position: refs/heads/master@{#384927}
4 years, 8 months ago (2016-04-04 16:44:01 UTC) #29
Greg Levin
4 years, 8 months ago (2016-04-04 16:46:32 UTC) #30
Message was sent while issue was closed.
https://codereview.chromium.org/1775023002/diff/120001/components/policy/reso...
File components/policy/resources/policy_templates.json (right):

https://codereview.chromium.org/1775023002/diff/120001/components/policy/reso...
components/policy/resources/policy_templates.json:8398: If this policy is true
or not configured then
On 2016/04/04 08:23:33, Andrew T Wilson (Slow) wrote:
> I don't think this statement is true - when you set
> "default_for_enterprise_users = false" this means that when the policy is not
> configured it should act as if the policy is set to false, not true.

That did the trick, thanks!!  The line was removed awhile ago, and seems to have
reappeared unnoticed due to a merge error.  Removing it fixed the tests.

Powered by Google App Engine
This is Rietveld 408576698