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); |