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

Issue 7635017: Fix saved screenshots for feedback. (Closed)

Created:
9 years, 4 months ago by rkc
Modified:
9 years, 3 months ago
Reviewers:
Daniel Erat, zel
CC:
chromium-reviews
Visibility:
Public.

Description

Fix saved screenshots for feedback. Fixed the location where the saved screenshots are picked from. Also fixed the issue with saved screenshots blocking the UI. R=zelidrag@chromium.org,derat@chromium.org BUG=chromium-os:18227, chromium:73180 TEST=Tested with sending feedback using a saved screenshot. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98934

Patch Set 1 #

Total comments: 18

Patch Set 2 : Using linked_ptr #

Patch Set 3 : Style fix. #

Total comments: 14

Patch Set 4 : Review comments incorporated. #

Total comments: 14

Patch Set 5 : Comment fixes. #

Total comments: 1

Patch Set 6 : Mac fix. #

Patch Set 7 : Mac fix - try 2 #

Patch Set 8 : Mac Fix 3 #

Patch Set 9 : Mac fix 4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -548 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 7 3 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/bug_report_data.h View 1 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/bug_report_data.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/bug_report_util.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/bug_report_util.cc View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
D chrome/browser/ui/cocoa/bug_report_window_controller.h View 1 2 3 4 5 6 1 chunk +0 lines, -112 lines 0 comments Download
M chrome/browser/ui/cocoa/bug_report_window_controller.mm View 1 2 3 4 5 6 1 chunk +0 lines, -232 lines 0 comments Download
D chrome/browser/ui/cocoa/bug_report_window_controller_unittest.mm View 1 2 3 4 5 6 1 chunk +0 lines, -78 lines 0 comments Download
M chrome/browser/ui/webui/bug_report_ui.cc View 1 4 chunks +5 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/screenshot_source.h View 1 2 3 4 2 chunks +32 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/screenshot_source.cc View 1 2 3 4 1 chunk +77 lines, -81 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
rkc
9 years, 4 months ago (2011-08-12 11:46:24 UTC) #1
zel
http://codereview.chromium.org/7635017/diff/1/chrome/browser/ui/webui/screenshot_source.cc File chrome/browser/ui/webui/screenshot_source.cc (right): http://codereview.chromium.org/7635017/diff/1/chrome/browser/ui/webui/screenshot_source.cc#newcode23 chrome/browser/ui/webui/screenshot_source.cc:23: int request_id, const std::vector<unsigned char> bytes) { const std::vector<unsigned ...
9 years, 4 months ago (2011-08-12 13:01:36 UTC) #2
Daniel Erat
http://codereview.chromium.org/7635017/diff/1/chrome/browser/ui/webui/screenshot_source.cc File chrome/browser/ui/webui/screenshot_source.cc (right): http://codereview.chromium.org/7635017/diff/1/chrome/browser/ui/webui/screenshot_source.cc#newcode36 chrome/browser/ui/webui/screenshot_source.cc:36: // change it's address 0x0; look into this eventually. ...
9 years, 4 months ago (2011-08-12 14:43:40 UTC) #3
rkc
Review comments incorporated. http://codereview.chromium.org/7635017/diff/1/chrome/browser/ui/webui/screenshot_source.cc File chrome/browser/ui/webui/screenshot_source.cc (right): http://codereview.chromium.org/7635017/diff/1/chrome/browser/ui/webui/screenshot_source.cc#newcode23 chrome/browser/ui/webui/screenshot_source.cc:23: int request_id, const std::vector<unsigned char> bytes) ...
9 years, 4 months ago (2011-08-22 13:23:52 UTC) #4
Daniel Erat
http://codereview.chromium.org/7635017/diff/7001/chrome/browser/ui/webui/screenshot_source.cc File chrome/browser/ui/webui/screenshot_source.cc (right): http://codereview.chromium.org/7635017/diff/7001/chrome/browser/ui/webui/screenshot_source.cc#newcode17 chrome/browser/ui/webui/screenshot_source.cc:17: static const char kCurrentScreenshot[] = "current"; nit: it'd be ...
9 years, 4 months ago (2011-08-22 16:42:02 UTC) #5
rkc
Review comments incorporated. http://codereview.chromium.org/7635017/diff/7001/chrome/browser/ui/webui/screenshot_source.cc File chrome/browser/ui/webui/screenshot_source.cc (right): http://codereview.chromium.org/7635017/diff/7001/chrome/browser/ui/webui/screenshot_source.cc#newcode17 chrome/browser/ui/webui/screenshot_source.cc:17: static const char kCurrentScreenshot[] = "current"; ...
9 years, 4 months ago (2011-08-23 10:25:19 UTC) #6
Daniel Erat
http://codereview.chromium.org/7635017/diff/10003/chrome/browser/ui/webui/screenshot_source.cc File chrome/browser/ui/webui/screenshot_source.cc (right): http://codereview.chromium.org/7635017/diff/10003/chrome/browser/ui/webui/screenshot_source.cc#newcode106 chrome/browser/ui/webui/screenshot_source.cc:106: read_bytes->clear(); i don't follow your previous comment about how ...
9 years, 4 months ago (2011-08-23 16:58:37 UTC) #7
rkc
Comments fixed. http://codereview.chromium.org/7635017/diff/10003/chrome/browser/ui/webui/screenshot_source.cc File chrome/browser/ui/webui/screenshot_source.cc (right): http://codereview.chromium.org/7635017/diff/10003/chrome/browser/ui/webui/screenshot_source.cc#newcode106 chrome/browser/ui/webui/screenshot_source.cc:106: read_bytes->clear(); On 2011/08/23 16:58:37, Daniel Erat wrote: ...
9 years, 4 months ago (2011-08-25 13:09:33 UTC) #8
Daniel Erat
9 years, 4 months ago (2011-08-25 14:03:52 UTC) #9
Thanks!  LGTM.

http://codereview.chromium.org/7635017/diff/18001/chrome/browser/ui/webui/scr...
File chrome/browser/ui/webui/screenshot_source.cc (right):

http://codereview.chromium.org/7635017/diff/18001/chrome/browser/ui/webui/scr...
chrome/browser/ui/webui/screenshot_source.cc:84:
strlen(kSavedScreenshotsBasePath));
nit: as a way to ensure that someone else's future changes don't pass an
incorrect path, it'd be good to add a DCHECK() before this that screenshot_path
actually starts with kSavedScreenshotsBasePath

Powered by Google App Engine
This is Rietveld 408576698