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

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

Issue 12313115: Take notification API out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed one pathname. 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/renderer/resources/extensions/notifications_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/notification_custom_bindings.js b/chrome/renderer/resources/extensions/notifications_custom_bindings.js
similarity index 93%
rename from chrome/renderer/resources/extensions/notification_custom_bindings.js
rename to chrome/renderer/resources/extensions/notifications_custom_bindings.js
index b88be0981d705c479fdde0bf4eb372822a7ef31b..99f02cac0b3ef583416acba52b8a0eab80ba1736 100644
--- a/chrome/renderer/resources/extensions/notification_custom_bindings.js
+++ b/chrome/renderer/resources/extensions/notifications_custom_bindings.js
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Custom bindings for the notification API.
+// Custom bindings for the chrome.notifications API.
var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
var sendRequest = require('sendRequest').sendRequest;
@@ -118,11 +118,10 @@ function genHandle(failure_function) {
var handleCreate = genHandle(function(callback, id) { callback(id); });
var handleUpdate = genHandle(function(callback, id) { callback(false); });
-var experimentalNotificationCustomHook = function(bindingsAPI, extensionId) {
+var notificationsCustomHook = function(bindingsAPI, extensionId) {
var apiFunctions = bindingsAPI.apiFunctions;
apiFunctions.setHandleRequest('create', handleCreate);
apiFunctions.setHandleRequest('update', handleCreate);
};
-chromeHidden.registerCustomHook('experimental.notification',
- experimentalNotificationCustomHook);
+chromeHidden.registerCustomHook('notifications', notificationsCustomHook);

Powered by Google App Engine
This is Rietveld 408576698