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

Unified Diff: content/child/notifications/notification_manager.cc

Issue 1750083004: Add badge to web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/notifications/notification_manager.cc
diff --git a/content/child/notifications/notification_manager.cc b/content/child/notifications/notification_manager.cc
index e1345d0e70e478ccc25f931d8df8b485168b9255..ae4c1ba442dc09685d60bb8f83db3e06dad7e07e 100644
--- a/content/child/notifications/notification_manager.cc
+++ b/content/child/notifications/notification_manager.cc
@@ -36,6 +36,8 @@ int CurrentWorkerId() {
bool HasResourcesToFetch(const blink::WebNotificationData& notification_data) {
if (!notification_data.icon.isEmpty())
return true;
+ if (!notification_data.badge.isEmpty())
+ return true;
for (const auto& action : notification_data.actions) {
if (!action.icon.isEmpty())
return true;

Powered by Google App Engine
This is Rietveld 408576698