idle-detection: Block permission requests from incognito profiles
This change implements automatic blocking of requests for the "idle-detection" permission from incognito profiles in order to prevent the feature from being used to correlate incognito and non-incognito sessions. As for requests for the "notifications" permission rather than simply automatically denying the request (which would be an incognito oracle) this patch waits a random amount of time before triggering the denial. The code from the NotificationsPermissionContext is cleaned up and reused for this. Bug: 878979 Change-Id: I57c57f39457932f570d7094882dc00d9c0eafa16 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2360943 Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Balazs Engedy <engedy@chromium.org> Cr-Commit-Position: refs/heads/master@{#807660}
Showing
Please register or sign in to comment