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

Issue 2338483004: Clean up the Notification class in advance of merging the Close methods (Closed)

Created:
4 years, 3 months ago by Peter Beverloo
Modified:
4 years, 3 months ago
Reviewers:
johnme, harkness
CC:
chromium-reviews, blink-reviews, haraken, Peter Beverloo, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up the Notification class in advance of merging the Close methods - Moves from class to enum class for notification state and type. - Notification instances now have clear knowledge of their type. - Don't instantiate an AsyncMethodRunner for non-persistent ones. - Simplify the lifetime of Notification instances: non-persistent notifications now follow their state machine, whereas persistent notifications now follow regular GC rules. This will make it somewhat easier to merge the close{Persistent,}() methods on the WebNotificationManager. BUG= Committed: https://crrev.com/c1e8be7b2f4b9d22ff8c596868ab9ed4e77dd956 Cr-Commit-Position: refs/heads/master@{#419183}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Clean up the Notification class in advance of merging the Close methods #

Total comments: 8

Patch Set 3 : Clean up the Notification class in advance of merging the Close methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -55 lines) Patch
M third_party/WebKit/Source/modules/notifications/Notification.h View 1 2 3 chunks +35 lines, -28 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 2 6 chunks +36 lines, -27 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (8 generated)
Peter Beverloo
+harkness for review +johnme for secondary review and OWNERS
4 years, 3 months ago (2016-09-13 13:59:34 UTC) #2
harkness
LGTM % comment https://codereview.chromium.org/2338483004/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2338483004/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode182 third_party/WebKit/Source/modules/notifications/Notification.cpp:182: SecurityOrigin* origin = getExecutionContext()->getSecurityOrigin(); It looks ...
4 years, 3 months ago (2016-09-14 16:23:46 UTC) #3
Peter Beverloo
Thank you! John? https://codereview.chromium.org/2338483004/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2338483004/diff/1/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode182 third_party/WebKit/Source/modules/notifications/Notification.cpp:182: SecurityOrigin* origin = getExecutionContext()->getSecurityOrigin(); On 2016/09/14 ...
4 years, 3 months ago (2016-09-14 16:51:19 UTC) #5
johnme
Nice cleanup. lgtm with nits https://codereview.chromium.org/2338483004/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2338483004/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode182 third_party/WebKit/Source/modules/notifications/Notification.cpp:182: if (m_type == NotificationType::NonPersistent) ...
4 years, 3 months ago (2016-09-16 14:14:35 UTC) #9
Peter Beverloo
https://codereview.chromium.org/2338483004/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp File third_party/WebKit/Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/2338483004/diff/20001/third_party/WebKit/Source/modules/notifications/Notification.cpp#newcode182 third_party/WebKit/Source/modules/notifications/Notification.cpp:182: if (m_type == NotificationType::NonPersistent) { On 2016/09/16 14:14:35, johnme ...
4 years, 3 months ago (2016-09-16 14:45:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2338483004/40001
4 years, 3 months ago (2016-09-16 14:46:10 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-16 16:21:44 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 16:23:14 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c1e8be7b2f4b9d22ff8c596868ab9ed4e77dd956
Cr-Commit-Position: refs/heads/master@{#419183}

Powered by Google App Engine
This is Rietveld 408576698