Description[Android] Presubmit check for banned Notification construction
- This check searches for use of 'new Notification.Builder'
and 'new NotificationCompat.Builder' in changed lines.
- Those constructors should not be used, new notifications should
use NotificationBuilderFactory.createChromeNotificationBuilder instead.
- This check ensures no new notifications can be introduced without
specifying a channel for use on Android O.
BUG=702628
Review-Url: https://codereview.chromium.org/2894643002
Cr-Commit-Position: refs/heads/master@{#473205}
Committed: https://chromium.googlesource.com/chromium/src/+/2c43ab991daa30205059b6d8a92a3857373061ff
Patch Set 1 #Patch Set 2 : Simplifying regex as it only runs on single lines #
Total comments: 5
Patch Set 3 : fixup whitelist #Patch Set 4 : remove blank lines for peter #Messages
Total messages: 11 (5 generated)
|