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

Unified Diff: chrome/renderer/resources/extensions/app.js

Issue 8776022: Move app notification getChannel API out of experimental (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another unit test fix Created 9 years 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/renderer/resources/extensions/app.js
diff --git a/chrome/renderer/resources/extensions/app.js b/chrome/renderer/resources/extensions/app.js
index 19e2c9115811f5dc57771dc963ba17f11570dc86..8fbce65bcddb8ad35ee79d8ee06ed6c23cee34f2 100644
--- a/chrome/renderer/resources/extensions/app.js
+++ b/chrome/renderer/resources/extensions/app.js
@@ -20,15 +20,16 @@ var chrome = chrome || {};
this.install = Install;
this.getDetails = GetDetails;
this.getDetailsForFrame = GetDetailsForFrame;
- this.experimental = {
- getNotificationChannel: function(clientId, callback) {
- var callbackId = 0;
- if (callback) {
- callbackId = nextCallbackId++;
- callbacks[callbackId] = callback;
- }
- GetAppNotifyChannel(clientId, callbackId);
+ }();
+
+ chrome.appNotifications = new function() {
+ this.getChannel = function(clientId, callback) {
+ var callbackId = 0;
+ if (callback) {
+ callbackId = nextCallbackId++;
+ callbacks[callbackId] = callback;
}
+ GetAppNotifyChannel(clientId, callbackId);
};
}();
« no previous file with comments | « chrome/common/extensions/extension_permission_set_unittest.cc ('k') | chrome/test/data/extensions/app_notifications/launch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698