Index: chrome/renderer/resources/extensions/notification_custom_bindings.js |
diff --git a/chrome/renderer/resources/extensions/notification_custom_bindings.js b/chrome/renderer/resources/extensions/notification_custom_bindings.js |
index 0e2cd137aa9cffa0d822ed8139ea22ad2b0794bb..074bbdb00a49bd5cddba0366a44907105b6e3f5f 100644 |
--- a/chrome/renderer/resources/extensions/notification_custom_bindings.js |
+++ b/chrome/renderer/resources/extensions/notification_custom_bindings.js |
@@ -111,8 +111,11 @@ function genHandle(failure_function) { |
that.definition.parameters); |
return; |
} |
- lastError.set('Unable to download all specified images.'); |
- failure_function(callback, id); |
+ // TODO(kalman): This is probably wrong, failure_function is created in |
+ // this context but it should be created in the caller's context. I just |
+ // don't know where that is. |
+ lastError.run('Unable to download all specified images.', |
+ failure_function); |
}); |
}; |
} |