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

Issue 19771024: Parse content in the response for upload iff the upload is successfully done. (Closed)

Created:
7 years, 5 months ago by hidehiko
Modified:
7 years, 5 months ago
Reviewers:
kinuko, kinaba
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Parse content in the response for upload iff the upload is successfully done. Uploading may fail due to confliction. In such a case, response may contain valid JSON data in the content of the response. However, here we expect only valid JSON data representing an uploaded file entry's metadata. This CL skips parsing JSON file, if an error is found. BUG=263330 TEST=Ran unit_tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213385

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -15 lines) Patch
M chrome/browser/google_apis/base_requests.cc View 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/google_apis/drive_api_requests_unittest.cc View 6 chunks +137 lines, -11 lines 0 comments Download
A chrome/test/data/drive/error.json View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hidehiko
I talked with kinuko@, and this CL is the fix, which is alternative of 19687003. ...
7 years, 5 months ago (2013-07-23 15:39:38 UTC) #1
kinaba
lgtm
7 years, 5 months ago (2013-07-23 22:47:55 UTC) #2
kinuko
I confirmed that this fixes the behavior in our code. Thanks!
7 years, 5 months ago (2013-07-24 05:56:47 UTC) #3
hidehiko
Thank you for your review. On 2013/07/24 05:56:47, kinuko wrote: > I confirmed that this ...
7 years, 5 months ago (2013-07-24 05:58:36 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/19771024/1
7 years, 5 months ago (2013-07-24 05:58:50 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 10:14:40 UTC) #6
Message was sent while issue was closed.
Change committed as 213385

Powered by Google App Engine
This is Rietveld 408576698