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= Review-Url: https://codereview.chromium.org/2338483004 Cr-Commit-Position: refs/heads/master@{#419183}
Showing
Please register or sign in to comment