DescriptionFix system notifications incorrectly marked as type WEB_PAGE
Some system components were incorrectly calling the Notification
constructor that was intended only for Web Notifications (though this
wasn't clearly documented). I've fixed the incorrect calls, and removed
the confusing constructor to prevent this reoccuring.
Other system components were explicitly constructing a NotifierId using
the constructor that takes a single GURL. I've fixed these incorrect
calls.
Finally, now that Web Notifications can be reliably detected using
`notification->notifier_id().type == NotifierId::WEB_PAGE` I've removed
the obsolete is_web_notification flag from message_center::Notification.
BUG=542232
Committed: https://crrev.com/81256f554f024571955f7f82b7fe4c7064afd238
Cr-Commit-Position: refs/heads/master@{#353529}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Addressed Peter's review comments #
Total comments: 8
Patch Set 3 : Address peter's review nits #
Total comments: 2
Patch Set 4 : Link to bug instead of codereview #Patch Set 5 : Fix typo #Messages
Total messages: 21 (7 generated)
|