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

Unified Diff: chrome/test/data/extensions/api_test/notifications/galore/app/controller.js

Issue 187803005: Remove uses of the Legacy Notification API and tests on Linux Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: chrome/test/data/extensions/api_test/notifications/galore/app/controller.js
diff --git a/chrome/test/data/extensions/api_test/notifications/galore/app/controller.js b/chrome/test/data/extensions/api_test/notifications/galore/app/controller.js
index 2c4ede057e917677e9f0424031fa53778080a4fe..5f5aa1ad6f3f19f6a4124318cc0dc4f00440576e 100644
--- a/chrome/test/data/extensions/api_test/notifications/galore/app/controller.js
+++ b/chrome/test/data/extensions/api_test/notifications/galore/app/controller.js
@@ -123,7 +123,10 @@ Galore.controller = {
var iconUrl = options.iconUrl;
var title = options.title;
var message = options.message;
- webkitNotifications.createNotification(iconUrl, title, message).show();
+ new Notification(title, {
+ body: message,
+ icon: iconUrl
+ });
this.handleEvent_('create', '?', 'title: "' + title + '"');
},

Powered by Google App Engine
This is Rietveld 408576698