Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2586)

Unified Diff: chrome/browser/ui/webui/screenshot_source.cc

Issue 10964026: Fix saved screenshots for feedback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/feedback.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/screenshot_source.cc
diff --git a/chrome/browser/ui/webui/screenshot_source.cc b/chrome/browser/ui/webui/screenshot_source.cc
index f4ba7ada5c43e78f74972f5fdf347a0f77a99ea9..c99bd870182d149c6f655adf1e173663c8deac15 100644
--- a/chrome/browser/ui/webui/screenshot_source.cc
+++ b/chrome/browser/ui/webui/screenshot_source.cc
@@ -163,6 +163,9 @@ void ScreenshotSource::CacheAndSendScreenshot(
const std::string& screenshot_path,
int request_id,
ScreenshotDataPtr bytes) {
- cached_screenshots_[screenshot_path] = bytes;
+ // Strip the query from the screenshot path.
+ std::string path = screenshot_path.substr(
+ 0, screenshot_path.find_first_of("?"));
+ cached_screenshots_[path] = bytes;
SendResponse(request_id, new base::RefCountedBytes(*bytes));
}
« no previous file with comments | « chrome/browser/resources/feedback.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698