Return MANUAL reason for host patterns that match default behavior.
This change enable parents to override SafeSearch with host patterns, like "*.sex.*". Currently "allow" patterns are not considered for the "try to block mature sites" setting, so the URL is allowed by DEFAULT but blocked by the SafeSearch check. By returning a MANUAL reason, instead, then it will be honored. This may introduce a conflict when different patterns match the same URL, but have different defaults, say, "www.google.*" and "*.google.com" both match "www.google.com". In this case, we prefer to honor a blacklist over a whitelist. parent settings. Bug: 880909 Test: Built a Chrome APK and verified different combinations for Change-Id: Ia8a2e8c9261c9ea0a539c32a2ca8fe5e3e576fae Reviewed-on: https://chromium-review.googlesource.com/1207573 Commit-Queue: Bruno Kim Medeiros Cesar <brunokim@chromium.org> Reviewed-by:Bernhard Bauer <bauerb@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#590297}
Showing
Please register or sign in to comment