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

Issue 455004: Keep incognito notification preferences separate from regular ones, and don't... (Closed)

Created:
11 years ago by John Gregg
Modified:
9 years ago
Reviewers:
michaeln, Peter Kasting
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

Keep incognito notification preferences separate from regular ones, and don't persist them permanently. BUG=none TEST=use notifications in incognito Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33476

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -30 lines) Patch
M chrome/browser/notifications/desktop_notification_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 4 chunks +35 lines, -29 lines 1 comment Download
M chrome/browser/profile.cc View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
John Gregg
11 years ago (2009-11-30 21:06:47 UTC) #1
Peter Kasting
http://codereview.chromium.org/455004/diff/1/3 File chrome/browser/notifications/desktop_notification_service.cc (right): http://codereview.chromium.org/455004/diff/1/3#newcode276 chrome/browser/notifications/desktop_notification_service.cc:276: if (!profile_->IsOffTheRecord()) { It really sucks to duplicate most ...
11 years ago (2009-11-30 21:24:32 UTC) #2
John Gregg
new code posted. http://codereview.chromium.org/455004/diff/1/3 File chrome/browser/notifications/desktop_notification_service.cc (right): http://codereview.chromium.org/455004/diff/1/3#newcode276 chrome/browser/notifications/desktop_notification_service.cc:276: if (!profile_->IsOffTheRecord()) { okay, fair point; ...
11 years ago (2009-11-30 21:45:30 UTC) #3
Peter Kasting
http://codereview.chromium.org/455004/diff/4001/5002 File chrome/browser/notifications/desktop_notification_service.cc (right): http://codereview.chromium.org/455004/diff/4001/5002#newcode252 chrome/browser/notifications/desktop_notification_service.cc:252: if (!profile_->IsOffTheRecord()) { Nit: Other code in this file ...
11 years ago (2009-11-30 21:56:40 UTC) #4
John Gregg
yep, fixed. http://codereview.chromium.org/455004/diff/4001/5002 File chrome/browser/notifications/desktop_notification_service.cc (right): http://codereview.chromium.org/455004/diff/4001/5002#newcode252 chrome/browser/notifications/desktop_notification_service.cc:252: if (!profile_->IsOffTheRecord()) { On 2009/11/30 21:56:41, Peter ...
11 years ago (2009-11-30 21:59:46 UTC) #5
michaeln
11 years ago (2009-12-01 00:00:07 UTC) #6
lgtm

http://codereview.chromium.org/455004/diff/3003/3005
File chrome/browser/notifications/desktop_notification_service.cc (right):

http://codereview.chromium.org/455004/diff/3003/3005#newcode277
chrome/browser/notifications/desktop_notification_service.cc:277: const GURL&
origin, bool is_allowed) {
maybe DCHECK(!profile_->IsOffTheRecord()), or push this test into the
PersistenPermissionChange method itself to share that last remaing line of code
that can be shared... ala...

if (IsOTR())
  return;

Powered by Google App Engine
This is Rietveld 408576698