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

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

Issue 12212037: Update notifications API after review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/notification/galore/app/controller.js
diff --git a/chrome/test/data/extensions/api_test/notification/galore/app/controller.js b/chrome/test/data/extensions/api_test/notification/galore/app/controller.js
index 54e6084ac2e1684ae40cbf27ee37da7e3ac4685a..51f3331f19c67d2bfa80c11569ec3b00cbae0d9e 100644
--- a/chrome/test/data/extensions/api_test/notification/galore/app/controller.js
+++ b/chrome/test/data/extensions/api_test/notification/galore/app/controller.js
@@ -33,10 +33,10 @@ Galore.controller = {
Galore.NOTIFICATIONS.forEach(function (type) {
type.notifications.forEach(function (options) {
this.view.addNotificationButton(
- type.type,
+ type.templateType,
miket_OOO 2013/02/06 18:42:34 I seem to have broken the @ replacement scheme you
dharcourt 2013/02/06 21:34:20 The icons shouldn't be broken, but the button imag
type.name,
this.replace_(options.iconUrl, this.BUTTON_IMAGE_SIZE),
- this.notify_.bind(this, type.type, options));
+ this.notify_.bind(this, type.templateType, options));
}, this);
}, this);
},
@@ -67,7 +67,7 @@ Galore.controller = {
/** @private */
expand_: function(options, type, priority) {
- var expanded = {type: type, priority: priority};
+ var expanded = {templateType: type, priority: priority};
Object.keys(options).forEach(function (key) {
expanded[key] = this.replace_(options[key], this.NOTIFICATION_ICON_SIZE);
}, this);

Powered by Google App Engine
This is Rietveld 408576698