Index: chrome/renderer/resources/extensions/windows_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/windows_custom_bindings.js b/chrome/renderer/resources/extensions/windows_custom_bindings.js |
index c97a3a1b9d0efcd6a7029cca7736f0fcb9b4413b..a0340f22181ce87107754d481b32f077bf4f126f 100644 |
--- a/chrome/renderer/resources/extensions/windows_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/windows_custom_bindings.js |
@@ -11,12 +11,12 @@ native function GetChromeHidden(); |
GetChromeHidden().registerCustomHook('windows', function(api) { |
var apiFunctions = api.apiFunctions; |
- apiFunctions.setUpdateArgumentsPreValidate("windows.get", function() { |
+ apiFunctions.setUpdateArgumentsPreValidate('get', function() { |
// Old signature: |
// get(int windowId, function callback); |
// New signature: |
// get(int windowId, object populate, function callback); |
- if (arguments.length == 2 && typeof(arguments[1]) == "function") { |
+ if (arguments.length == 2 && typeof(arguments[1]) == 'function') { |
// If the old signature is used, add a null populate object. |
newArgs = [arguments[0], null, arguments[1]]; |
} else { |
@@ -25,13 +25,12 @@ GetChromeHidden().registerCustomHook('windows', function(api) { |
return newArgs; |
}); |
- apiFunctions.setUpdateArgumentsPreValidate("windows.getCurrent", |
- function() { |
+ apiFunctions.setUpdateArgumentsPreValidate('getCurrent', function() { |
// Old signature: |
// getCurrent(function callback); |
// New signature: |
// getCurrent(object populate, function callback); |
- if (arguments.length == 1 && typeof(arguments[0]) == "function") { |
+ if (arguments.length == 1 && typeof(arguments[0]) == 'function') { |
// If the old signature is used, add a null populate object. |
newArgs = [null, arguments[0]]; |
} else { |
@@ -40,13 +39,12 @@ GetChromeHidden().registerCustomHook('windows', function(api) { |
return newArgs; |
}); |
- apiFunctions.setUpdateArgumentsPreValidate("windows.getLastFocused", |
- function() { |
+ apiFunctions.setUpdateArgumentsPreValidate('getLastFocused', function() { |
// Old signature: |
// getLastFocused(function callback); |
// New signature: |
// getLastFocused(object populate, function callback); |
- if (arguments.length == 1 && typeof(arguments[0]) == "function") { |
+ if (arguments.length == 1 && typeof(arguments[0]) == 'function') { |
// If the old signature is used, add a null populate object. |
newArgs = [null, arguments[0]]; |
} else { |
@@ -55,12 +53,12 @@ GetChromeHidden().registerCustomHook('windows', function(api) { |
return newArgs; |
}); |
- apiFunctions.setUpdateArgumentsPreValidate("windows.getAll", function() { |
+ apiFunctions.setUpdateArgumentsPreValidate('getAll', function() { |
// Old signature: |
// getAll(function callback); |
// New signature: |
// getAll(object populate, function callback); |
- if (arguments.length == 1 && typeof(arguments[0]) == "function") { |
+ if (arguments.length == 1 && typeof(arguments[0]) == 'function') { |
// If the old signature is used, add a null populate object. |
newArgs = [null, arguments[0]]; |
} else { |