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

Issue 1578023: Add notifications to allow desktop notification permissions to be synced. (Closed)

Created:
10 years, 8 months ago by Zachary Kuznia
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add notifications to allow desktop notification permissions to be synced. Fix a bug where sites can be added to allow and deny lists multiple times. BUG=none TEST=Open two browsers with separate profiles. Request permission for notifications on a site on one. Check that the permissions are the same on the other browser. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44234 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44283

Patch Set 1 #

Patch Set 2 : Code Review #

Total comments: 5

Patch Set 3 : Code review changes #

Total comments: 2

Patch Set 4 : Code Review changes. #

Patch Set 5 : Pre-commit #

Patch Set 6 : Pre-commit #

Total comments: 1

Patch Set 7 : pre-commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -33 lines) Patch
M base/values.h View 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M base/values.cc View 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 5 6 4 chunks +118 lines, -14 lines 0 comments Download
M chrome/browser/notifications/desktop_notifications_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/notifications_prefs_cache.h View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/notifications/notifications_prefs_cache.cc View 1 2 3 4 2 chunks +25 lines, -16 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Zachary Kuznia
10 years, 8 months ago (2010-04-08 21:15:43 UTC) #1
John Gregg
http://codereview.chromium.org/1578023/diff/2001/3001 File chrome/browser/notifications/desktop_notification_service.cc (right): http://codereview.chromium.org/1578023/diff/2001/3001#newcode305 chrome/browser/notifications/desktop_notification_service.cc:305: } This makes things very complicated; lots of ways ...
10 years, 8 months ago (2010-04-09 00:14:48 UTC) #2
Zachary Kuznia
http://codereview.chromium.org/1578023/diff/2001/3001 File chrome/browser/notifications/desktop_notification_service.cc (right): http://codereview.chromium.org/1578023/diff/2001/3001#newcode305 chrome/browser/notifications/desktop_notification_service.cc:305: } On 2010/04/09 00:14:48, John Gregg wrote: > This ...
10 years, 8 months ago (2010-04-09 18:27:56 UTC) #3
John Gregg
chrome style is not to put { } around one-liners, but besides that, LGTM! http://codereview.chromium.org/1578023/diff/7001/8001 ...
10 years, 8 months ago (2010-04-09 18:36:00 UTC) #4
tony
10 years, 8 months ago (2010-04-12 08:46:03 UTC) #5
drive by review

http://codereview.chromium.org/1578023/diff/15001/16003
File chrome/browser/notifications/desktop_notification_service.cc (right):

http://codereview.chromium.org/1578023/diff/15001/16003#newcode335
chrome/browser/notifications/desktop_notification_service.cc:335: if
(allowed_sites->AppendIfNotPresent(value))
It looks like you leak |value| if it's not appended.

Powered by Google App Engine
This is Rietveld 408576698