Index: chrome/browser/dom_ui/dom_ui_screenshot_source.cc |
diff --git a/chrome/browser/dom_ui/dom_ui_screenshot_source.cc b/chrome/browser/dom_ui/dom_ui_screenshot_source.cc |
index db354995515473ca4241604928acdaf65832605e..110a52e0764bffad4efc48287fa4d4bc3350d9eb 100644 |
--- a/chrome/browser/dom_ui/dom_ui_screenshot_source.cc |
+++ b/chrome/browser/dom_ui/dom_ui_screenshot_source.cc |
@@ -115,3 +115,9 @@ void DOMUIScreenshotSource::StartDataRequest(const std::string& path, |
int request_id) { |
SendResponse(request_id, new RefCountedBytes(GetScreenshot(path))); |
} |
+ |
+std::string DOMUIScreenshotSource::GetMimeType(const std::string&) const { |
+ // We need to explicitly return a mime type, otherwise if the user tries to |
+ // drag the image they get no extension. |
+ return "image/png"; |
+} |