Index: chrome/browser/resources/feedback/js/take_screenshot.js |
diff --git a/chrome/browser/resources/feedback/js/take_screenshot.js b/chrome/browser/resources/feedback/js/take_screenshot.js |
index ae9543c8751d17bcbd46161b75e03dd4d03788e7..2985e64fd43a6a111cb97c7c99967994874c4370 100644 |
--- a/chrome/browser/resources/feedback/js/take_screenshot.js |
+++ b/chrome/browser/resources/feedback/js/take_screenshot.js |
@@ -4,8 +4,8 @@ |
/** |
* Function to take the screenshot of the current screen. |
- * @param {function(string)} callback Callback for returning the data URL to the |
- * screenshot. |
+ * @param {function(HTMLCanvasElement)} callback Callback for returning the |
+ * canvas with the screenshot on it. |
*/ |
function takeScreenshot(callback) { |
var screenshotStream = null; |
@@ -25,7 +25,7 @@ function takeScreenshot(callback) { |
screenshotStream.stop(); |
screenshotStream = null; |
- callback(canvas.toDataURL('image/png')); |
+ callback(canvas); |
} |
}, false); |