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

Issue 1441143006: Disable Notifications in Incognito (Closed)

Created:
5 years, 1 month ago by johnme
Modified:
4 years, 11 months ago
CC:
chromium-reviews, kcarattini+watch_chromium.org, mlamouri+watch-permissions_chromium.org, mlamouri+watch-notifications_chromium.org, oshima+watch_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@innoinherit
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable Notifications in Incognito Blanket denying notifications and push messaging in incognito, via a permissions infobar that always denies the permission once dismissed, prevents websites from detecting incognito mode. Depends on: - https://codereview.chromium.org/1442083002 - https://codereview.chromium.org/1478433002 Known caveat: Prevents legitimate use of notifications in incognito :( BUG=479679

Patch Set 1 #

Patch Set 2 : Add override to NotificationPermissionContext to reduce modifications of PermissionContextBase #

Patch Set 3 : Clean up DecidePermission override, and prevent Page Info Bubble enabling permission. #

Total comments: 17

Patch Set 4 : Address review comments #

Total comments: 7

Patch Set 5 : Address nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -21 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
A + chrome/app/theme/default_100_percent/common/infobar_desktop_notifications.png View Binary file 0 comments Download
D chrome/app/theme/default_100_percent/legacy/infobar_desktop_notifications.png View Binary file 0 comments Download
A + chrome/app/theme/default_200_percent/common/infobar_desktop_notifications.png View Binary file 0 comments Download
D chrome/app/theme/default_200_percent/legacy/infobar_desktop_notifications.png View Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/resource_id.h View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
A chrome/browser/notifications/incognito_denied_infobar_delegate.h View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/notifications/incognito_denied_infobar_delegate.cc View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_permission_context.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_permission_context.cc View 1 2 3 4 2 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_permission_infobar_delegate.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/android/infobars/confirm_infobar.cc View 1 2 4 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permission_selector_view.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/website_settings/permission_selector_view.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
johnme
Hey Mounir, let's chat tomorrow to see if this approach makes sense.
5 years, 1 month ago (2015-11-16 07:25:04 UTC) #2
mlamouri (slow - plz ping)
We did chat and we discussed moving some stuff from DecidePermission to RequestPermission so we ...
5 years, 1 month ago (2015-11-20 21:18:29 UTC) #3
johnme
On 2015/11/20 21:18:29, Mounir Lamouri wrote: > We did chat and we discussed moving some ...
5 years ago (2015-11-27 15:55:14 UTC) #5
mlamouri (slow - plz ping)
As far as permissions goes, the direction is good: with your refactoring, there is little ...
5 years ago (2015-11-28 17:00:54 UTC) #6
johnme
Addressed review comments - thanks! https://codereview.chromium.org/1441143006/diff/40001/chrome/browser/notifications/incognito_denied_infobar_delegate.cc File chrome/browser/notifications/incognito_denied_infobar_delegate.cc (right): https://codereview.chromium.org/1441143006/diff/40001/chrome/browser/notifications/incognito_denied_infobar_delegate.cc#newcode18 chrome/browser/notifications/incognito_denied_infobar_delegate.cc:18: const GURL& requesting_frame, On ...
5 years ago (2015-11-30 15:37:20 UTC) #7
mlamouri (slow - plz ping)
lgtm. The nits below are really up to you. Feel free to ignore my stylish ...
5 years ago (2015-12-02 15:59:29 UTC) #8
johnme
Addressed nits - thanks :) https://codereview.chromium.org/1441143006/diff/60001/chrome/browser/notifications/incognito_denied_infobar_delegate.h File chrome/browser/notifications/incognito_denied_infobar_delegate.h (right): https://codereview.chromium.org/1441143006/diff/60001/chrome/browser/notifications/incognito_denied_infobar_delegate.h#newcode47 chrome/browser/notifications/incognito_denied_infobar_delegate.h:47: void SetPermission(bool update_content_setting, bool ...
5 years ago (2015-12-08 17:37:22 UTC) #9
johnme
4 years, 11 months ago (2016-01-11 12:34:18 UTC) #10
Message was sent while issue was closed.
Abandoned in favor of https://codereview.chromium.org/1575623002/

Powered by Google App Engine
This is Rietveld 408576698