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

Issue 23458031: Fix feedback attach a file and system info code. (Closed)

Created:
7 years, 3 months ago by rkc
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Fix feedback attach a file and system info code. Attaching a file to feedback is crashing the app since we fail on the AttachedFile validate (since we don't actually send blobs over, the attachedFile.data field is always empty, which fails parameter validation on the Chrome side). The easiest way to fix it was to make the parameter optional, since we never read it anyway. It is only there to hold the data so that the feedback custom bindings can move it into attachedFileBlobUrl. This CL also fixes the sys info, which wasn't being sent due to code that was ported over from the UI incorrectly. The new UI does not need to wait on system information collection, since that is now done via a separate call, making passing around the sys_info variable completely redundant, and in this case wrong. R=asargent@chromium.org BUG=285942, 285938 TEST=We are able to attach a file and system information with a feedback report. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221866

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -48 lines) Patch
M chrome/browser/extensions/api/feedback_private/feedback_private_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/feedback/feedback_data.h View 1 3 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/feedback/feedback_data.cc View 1 1 chunk +27 lines, -35 lines 0 comments Download
M chrome/common/extensions/api/feedback_private.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
rkc
7 years, 3 months ago (2013-09-06 21:53:43 UTC) #1
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/23458031/diff/1/chrome/browser/feedback/feedback_data.cc File chrome/browser/feedback/feedback_data.cc (right): https://codereview.chromium.org/23458031/diff/1/chrome/browser/feedback/feedback_data.cc#newcode99 chrome/browser/feedback/feedback_data.cc:99: void FeedbackData::set_sys_info( style nit: I think the style ...
7 years, 3 months ago (2013-09-06 22:53:48 UTC) #2
rkc
https://codereview.chromium.org/23458031/diff/1/chrome/browser/feedback/feedback_data.cc File chrome/browser/feedback/feedback_data.cc (right): https://codereview.chromium.org/23458031/diff/1/chrome/browser/feedback/feedback_data.cc#newcode99 chrome/browser/feedback/feedback_data.cc:99: void FeedbackData::set_sys_info( On 2013/09/06 22:53:48, Antony Sargent wrote: > ...
7 years, 3 months ago (2013-09-06 23:02:16 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/23458031/6001
7 years, 3 months ago (2013-09-06 23:17:02 UTC) #4
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 02:53:22 UTC) #5
Message was sent while issue was closed.
Change committed as 221866

Powered by Google App Engine
This is Rietveld 408576698