Index: content/child/notifications/notification_manager.cc |
diff --git a/content/child/notifications/notification_manager.cc b/content/child/notifications/notification_manager.cc |
index e39588e44abff3db1235b61266ddc6f946fb0a86..4efcb3d0cddad592696e21df20b45deda6d0178b 100644 |
--- a/content/child/notifications/notification_manager.cc |
+++ b/content/child/notifications/notification_manager.cc |
@@ -71,7 +71,7 @@ void NotificationManager::show( |
const blink::WebSerializedOrigin& origin, |
const blink::WebNotificationData& notification_data, |
blink::WebNotificationDelegate* delegate) { |
- if (notification_data.icon.isEmpty()) { |
+ if (notification_data.icon.isEmpty() && notification_data.sound.isEmpty()) { |
DisplayPageNotification(origin, notification_data, delegate, SkBitmap()); |
return; |
} |
@@ -115,7 +115,7 @@ void NotificationManager::showPersistent( |
return; |
} |
- if (notification_data.icon.isEmpty()) { |
+ if (notification_data.icon.isEmpty() && notification_data.sound.isEmpty()) { |
DisplayPersistentNotification(origin, |
notification_data, |
service_worker_registration_id, |