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

Issue 1134633003: Drive: Let DriveUploader use batch request API. (Closed)

Created:
5 years, 7 months ago by hirono
Modified:
5 years, 7 months ago
Reviewers:
kinaba, tzik
CC:
chromium-reviews, tzik, tfarina, nhiroki, oshima+watch_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drive: Let DriveUploader use batch request API. The CL lets DriveUploader use batch request API. DriveUploader does asynchronous preparation before calling API on service interface. To hold batch request during the asynchronous preparation, the CL introduce refcounted hepler class, which manages life time of batch request configurator. BUG=451917 TEST=DriveUploaderTest Committed: https://crrev.com/9cf453b74c8790f6d7a91f958ec998a9fa5a1fa0 Cr-Commit-Position: refs/heads/master@{#329599}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : Addressed comments. #

Patch Set 5 : Addressed comments. #

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : Rename get() with configurator(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -74 lines) Patch
M chrome/browser/chromeos/drive/job_queue.cc View 1 2 3 4 5 1 chunk +11 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/drive/job_scheduler.cc View 1 2 3 chunks +23 lines, -16 lines 0 comments Download
M chrome/browser/drive/drive_uploader.h View 1 2 5 chunks +25 lines, -4 lines 0 comments Download
M chrome/browser/drive/drive_uploader.cc View 1 2 3 4 5 6 6 chunks +50 lines, -6 lines 0 comments Download
M chrome/browser/drive/drive_uploader_unittest.cc View 1 2 3 4 5 chunks +215 lines, -27 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/drive_uploader_on_worker.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/drive_uploader_on_worker.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/fake_drive_uploader.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M google_apis/drive/drive_api_requests.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M google_apis/drive/drive_api_requests_unittest.cc View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
hirono
PTAL, thanks!
5 years, 7 months ago (2015-05-08 05:27:22 UTC) #2
kinaba
https://codereview.chromium.org/1134633003/diff/40001/chrome/browser/drive/drive_uploader.cc File chrome/browser/drive/drive_uploader.cc (right): https://codereview.chromium.org/1134633003/diff/40001/chrome/browser/drive/drive_uploader.cc#newcode48 chrome/browser/drive/drive_uploader.cc:48: // destroyed, it commits owned batch request. Please add ...
5 years, 7 months ago (2015-05-08 06:58:12 UTC) #3
hirono
Thank you! https://codereview.chromium.org/1134633003/diff/40001/chrome/browser/drive/drive_uploader.cc File chrome/browser/drive/drive_uploader.cc (right): https://codereview.chromium.org/1134633003/diff/40001/chrome/browser/drive/drive_uploader.cc#newcode48 chrome/browser/drive/drive_uploader.cc:48: // destroyed, it commits owned batch request. ...
5 years, 7 months ago (2015-05-11 05:22:06 UTC) #4
kinaba
lgtm with one request https://codereview.chromium.org/1134633003/diff/100001/chrome/browser/drive/drive_uploader.cc File chrome/browser/drive/drive_uploader.cc (right): https://codereview.chromium.org/1134633003/diff/100001/chrome/browser/drive/drive_uploader.cc#newcode316 chrome/browser/drive/drive_uploader.cc:316: service = batch_request->get(); Let's rename ...
5 years, 7 months ago (2015-05-11 05:33:14 UTC) #5
hirono
Thanks! https://codereview.chromium.org/1134633003/diff/100001/chrome/browser/drive/drive_uploader.cc File chrome/browser/drive/drive_uploader.cc (right): https://codereview.chromium.org/1134633003/diff/100001/chrome/browser/drive/drive_uploader.cc#newcode316 chrome/browser/drive/drive_uploader.cc:316: service = batch_request->get(); On 2015/05/11 05:33:14, kinaba wrote: ...
5 years, 7 months ago (2015-05-11 05:53:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134633003/120001
5 years, 7 months ago (2015-05-11 05:55:33 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/62533)
5 years, 7 months ago (2015-05-11 07:14:46 UTC) #11
hirono
PTAL chrome/browser/sync_file_system/* Thank you!
5 years, 7 months ago (2015-05-11 08:44:37 UTC) #13
hirono
On 2015/05/11 08:44:37, hirono wrote: > PTAL chrome/browser/sync_file_system/* > Thank you! Sorry I missed the ...
5 years, 7 months ago (2015-05-11 08:46:55 UTC) #14
hirono
On 2015/05/11 08:46:55, hirono wrote: > On 2015/05/11 08:44:37, hirono wrote: > > PTAL chrome/browser/sync_file_system/* ...
5 years, 7 months ago (2015-05-13 03:28:09 UTC) #16
tzik
lgtm
5 years, 7 months ago (2015-05-13 04:44:45 UTC) #17
hirono
On 2015/05/13 04:44:45, tzik wrote: > lgtm Thank you!
5 years, 7 months ago (2015-05-13 05:58:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134633003/120001
5 years, 7 months ago (2015-05-13 05:59:12 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-13 06:56:21 UTC) #22
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/9cf453b74c8790f6d7a91f958ec998a9fa5a1fa0 Cr-Commit-Position: refs/heads/master@{#329599}
5 years, 7 months ago (2015-05-13 06:57:18 UTC) #23
sergeyv
5 years, 7 months ago (2015-05-13 09:43:23 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1135353004/ by sergeyv@chromium.org.

The reason for reverting is: MigrationSingleClientTest.AllTypesIndividually is
broken by this change on Linux GN:

http://build.chromium.org/p/chromium.linux/builders/Linux%20GN/builds/28327

.

Powered by Google App Engine
This is Rietveld 408576698