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

Issue 442193002: Parse Drive API responses all at once in the blocking pool. (Closed)

Created:
6 years, 4 months ago by kinaba
Modified:
6 years, 4 months ago
Reviewers:
hashimoto
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Reland: Parse Drive API responses all at once in the blocking pool. Previous implementation did the parsing of string to base::Value on blocking pool, and that of base::Value to specific data types either on UI thread or on yet another post to blocking pool. The previous implementation is slightly inefficient and moreover involves a subtle bug 284244. BUG=284244, 401843 This CL once landed as r288017 (Patch Set 4) and reverted. This is the second try. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288275

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Remove GetDataRequest #

Patch Set 3 : Rebase + really drop GetDataRequest #

Total comments: 2

Patch Set 4 : Review fix #

Patch Set 5 : Rebase. #

Patch Set 6 : Fix the cause of the regression. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -393 lines) Patch
M chrome/browser/drive/drive_api_service.cc View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/drive/drive_api_util.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/drive/drive_api_util.cc View 1 2 3 4 1 chunk +0 lines, -23 lines 0 comments Download
M google_apis/drive/base_requests.h View 1 2 3 chunks +2 lines, -49 lines 0 comments Download
M google_apis/drive/base_requests.cc View 1 2 3 4 5 chunks +40 lines, -93 lines 0 comments Download
M google_apis/drive/base_requests_unittest.cc View 1 2 4 chunks +2 lines, -67 lines 0 comments Download
M google_apis/drive/drive_api_requests.h View 1 2 3 4 5 15 chunks +91 lines, -21 lines 0 comments Download
M google_apis/drive/drive_api_requests.cc View 15 chunks +17 lines, -115 lines 0 comments Download
M google_apis/drive/gdata_wapi_requests.h View 1 1 chunk +19 lines, -4 lines 0 comments Download
M google_apis/drive/gdata_wapi_requests.cc View 1 2 3 4 5 2 chunks +52 lines, -4 lines 0 comments Download
M google_apis/drive/gdata_wapi_requests_unittest.cc View 1 3 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
kinaba
PTAL. Suggestions are welcome. I'm not so sure if this is the best approach.
6 years, 4 months ago (2014-08-06 08:00:30 UTC) #1
hashimoto
A lot of code in the header seems not pretty, but this might be the ...
6 years, 4 months ago (2014-08-06 09:23:02 UTC) #2
kinaba
https://codereview.chromium.org/442193002/diff/60001/google_apis/drive/drive_api_requests.h File google_apis/drive/drive_api_requests.h (right): https://codereview.chromium.org/442193002/diff/60001/google_apis/drive/drive_api_requests.h#newcode75 google_apis/drive/drive_api_requests.h:75: class DriveApiDataRequest : public DriveApiPartialFieldRequest { On 2014/08/06 09:23:02, ...
6 years, 4 months ago (2014-08-07 00:59:34 UTC) #3
hashimoto
lgtm https://codereview.chromium.org/442193002/diff/120001/chrome/browser/drive/drive_api_service.cc File chrome/browser/drive/drive_api_service.cc (right): https://codereview.chromium.org/442193002/diff/120001/chrome/browser/drive/drive_api_service.cc#newcode156 chrome/browser/drive/drive_api_service.cc:156: nit: This blank line is redundant?
6 years, 4 months ago (2014-08-07 02:55:09 UTC) #4
kinaba
https://codereview.chromium.org/442193002/diff/120001/chrome/browser/drive/drive_api_service.cc File chrome/browser/drive/drive_api_service.cc (right): https://codereview.chromium.org/442193002/diff/120001/chrome/browser/drive/drive_api_service.cc#newcode156 chrome/browser/drive/drive_api_service.cc:156: On 2014/08/07 02:55:09, hashimoto wrote: > nit: This blank ...
6 years, 4 months ago (2014-08-07 02:58:08 UTC) #5
kinaba
The CQ bit was checked by kinaba@chromium.org
6 years, 4 months ago (2014-08-07 02:58:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/442193002/140001
6 years, 4 months ago (2014-08-07 03:01:01 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-07 06:26:15 UTC) #8
commit-bot: I haz the power
Change committed as 288017
6 years, 4 months ago (2014-08-07 08:54:55 UTC) #9
kinaba
On 2014/08/07 08:54:55, I haz the power (commit-bot) wrote: > Change committed as 288017 (reopening ...
6 years, 4 months ago (2014-08-08 04:33:49 UTC) #10
kinaba
PTAL: Patch Set 4->5 is the diff.
6 years, 4 months ago (2014-08-08 06:29:30 UTC) #11
hashimoto
lgtm so sorry I couldn't catch this.
6 years, 4 months ago (2014-08-08 06:31:20 UTC) #12
kinaba
The CQ bit was checked by kinaba@chromium.org
6 years, 4 months ago (2014-08-08 06:33:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/442193002/180001
6 years, 4 months ago (2014-08-08 06:36:42 UTC) #14
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 09:19:28 UTC) #15
Message was sent while issue was closed.
Change committed as 288275

Powered by Google App Engine
This is Rietveld 408576698