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

Unified Diff: chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html

Issue 418173006: extensions: Migrate other uses of webkitNotifications to Web Notifications API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 years, 5 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
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/irc/servlet/index.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html
diff --git a/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html b/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html
index bdf4ca52fb439944863cf2d177aabdfea0f0e865..b717ff38dce43550903d534652981e79b04ec692 100644
--- a/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html
+++ b/chrome/common/extensions/docs/templates/articles/cloudMessagingV1.html
@@ -400,9 +400,9 @@ as a text notification when it arrives:
<pre>
function showPushMessage(message) {
- var notification = window.webkitNotifications.createNotification(
- '', 'New notification', message.payload + " [" + message.subchannelId + "]");
- notification.show();
+ new Notification('New notification', {
+ body: message.payload + " [" + message.subchannelId + "]"
+ });
}
</pre>
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/irc/servlet/index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698