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

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

Issue 965573002: Implement support for silent notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 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_data_conversions.cc
diff --git a/content/child/notifications/notification_data_conversions.cc b/content/child/notifications/notification_data_conversions.cc
index 45f89cd861ef3fb26cfdd04af87f2e2df694b18b..2305d9a91a4838d8b32faac3546b15060f382dcf 100644
--- a/content/child/notifications/notification_data_conversions.cc
+++ b/content/child/notifications/notification_data_conversions.cc
@@ -24,6 +24,7 @@ PlatformNotificationData ToPlatformNotificationData(
platform_data.body = web_data.body;
platform_data.tag = web_data.tag;
platform_data.icon = GURL(web_data.icon.string());
+ platform_data.silent = web_data.silent;
return platform_data;
}
@@ -41,6 +42,7 @@ WebNotificationData ToWebNotificationData(
web_data.body = platform_data.body;
web_data.tag = platform_data.tag;
web_data.icon = blink::WebURL(platform_data.icon);
+ web_data.silent = platform_data.silent;
return web_data;
}

Powered by Google App Engine
This is Rietveld 408576698