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

Issue 1825173003: [Policy Experimental] Add "recommended" policies for URL exceptions. (Closed)

Created:
4 years, 9 months ago by huangs
Modified:
4 years, 7 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, msramek+watch_chromium.org, michaelpg+watch-options_chromium.org, raymes+watch_chromium.org, arv+watch_chromium.org, markusheintz_, tnagel+watch_chromium.org, grt (UTC plus 2), saswat
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Policy Experimental] Add "recommended" policies for URL exceptions. We want to allow various Content Settings items to be recommendations that can be overridden by user. This is an proof-of-concept CL to experiment with this new feature. BUG=568031

Patch Set 1 #

Total comments: 2

Patch Set 2 : Handle default settings. #

Patch Set 3 : Fix default settings UI. #

Patch Set 4 : Change PolicyMap so mandatory and recommended values can coexist. #

Patch Set 5 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -113 lines) Patch
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/preferences/website_preference_bridge.cc View 1 2 3 4 4 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_provider.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/storage/policy_value_store.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/content_settings.css View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/content_settings.js View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 1 chunk +15 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/policy_ui_handler.cc View 1 2 3 1 chunk +23 lines, -17 lines 0 comments Download
M components/content_settings/core/browser/content_settings_policy_provider.h View 1 4 chunks +13 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_policy_provider.cc View 1 2 3 6 chunks +43 lines, -24 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 4 4 chunks +69 lines, -8 lines 0 comments Download
M components/content_settings/core/common/content_settings.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/browser/configuration_policy_handler_list.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M components/policy/core/browser/configuration_policy_pref_store.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/policy_map.h View 1 2 3 6 chunks +42 lines, -9 lines 0 comments Download
M components/policy/core/common/policy_map.cc View 1 2 3 10 chunks +86 lines, -15 lines 0 comments Download
M components/policy/core/common/policy_test_utils.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M components/policy/core/common/policy_types.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M components/policy/core/common/schema_map.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 10 chunks +9 lines, -2 lines 0 comments Download
M components/prefs/pref_service.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/prefs/pref_service.cc View 1 1 chunk +16 lines, -2 lines 0 comments Download
M components/prefs/pref_value_store.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M components/prefs/pref_value_store.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/host/policy_watcher.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
huangs
Patch Set 1: Basic support, where admin can edit items (for {Cookies, Image, Popup}) under ...
4 years, 9 months ago (2016-03-23 01:35:16 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1825173003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1825173003/1
4 years, 9 months ago (2016-03-23 01:40:59 UTC) #3
huangs
Extensive changes are needed, but any early feedback is appreciated. thanks!
4 years, 9 months ago (2016-03-23 01:42:30 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/39671) linux_android_rel_ng on ...
4 years, 9 months ago (2016-03-23 01:56:51 UTC) #7
pastarmovj
Just a comment on your FIXME. :) https://codereview.chromium.org/1825173003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/1825173003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc#newcode150 components/content_settings/core/browser/host_content_settings_map.cc:150: // FIXME(huangs): ...
4 years, 9 months ago (2016-03-23 13:24:49 UTC) #9
huangs
Thanks! Replied.
4 years, 9 months ago (2016-03-23 14:56:06 UTC) #10
huangs
Oops needed to send the actual reply... https://codereview.chromium.org/1825173003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/1825173003/diff/1/components/content_settings/core/browser/host_content_settings_map.cc#newcode150 components/content_settings/core/browser/host_content_settings_map.cc:150: // FIXME(huangs): ...
4 years, 9 months ago (2016-03-23 15:45:08 UTC) #11
huangs
It looks like PrefsService uses PrefRegistry prioritize the multi-value nature of PrefsValueStore? This is fine ...
4 years, 9 months ago (2016-03-23 20:01:21 UTC) #12
huangs
I think V2 is ready for more in-depth review, since it exposes some data that ...
4 years, 9 months ago (2016-03-23 22:15:53 UTC) #13
huangs
Feature won't be done this week; spent lots of time understanding flow. :( Hopefully we'll ...
4 years, 9 months ago (2016-03-24 23:42:48 UTC) #16
Bernhard Bauer
Drive-by comment! 😃 I think a good chunk of the complexity in this CL (in ...
4 years, 8 months ago (2016-03-30 08:49:39 UTC) #18
huangs
Thanks for the comment! Indeed I'm bothered by mandatory/recommended data vanishing along the observer flow. ...
4 years, 8 months ago (2016-03-30 19:30:13 UTC) #19
huangs
Confirmed: For Windows, PolicyLoaderWin::Load() merges recommended policy into mandatory policy: LoadChromePolicy(&gpo_dict, POLICY_LEVEL_MANDATORY, scope, chrome_policy); LoadChromePolicy(recommended_dict.get(), ...
4 years, 8 months ago (2016-03-30 20:45:14 UTC) #20
huangs
Went with (2) and have hacky prototype that's feature-complete! PTAL and comment on the approach; ...
4 years, 8 months ago (2016-03-31 23:29:51 UTC) #21
huangs
Unless there are objections, I'm going to proceed with this general plan and trying to ...
4 years, 8 months ago (2016-04-01 18:20:12 UTC) #22
huangs
4 years, 8 months ago (2016-04-01 20:03:59 UTC) #23
Discussed with grt@: Looks like this might not be the way to go re. what we want
to do currently, i.e., focus on Popups and third-party cookies.  Will produce
new (and much simpler) CL!

Powered by Google App Engine
This is Rietveld 408576698