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

Issue 15681009: Extract GetResolveFile into DownloadOperation. (Closed)

Created:
7 years, 7 months ago by hidehiko
Modified:
7 years, 7 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, oshima+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Extract GetResolveFile into DownloadOperation. This CL extracts the GetResolveFile into an operation class, with simplifying the implementation by merging consecutive accesses to the metadata and cache into a function. BUG=242084 TEST=Ran unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202450

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Address review comments. #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+820 lines, -767 lines) Patch
M chrome/browser/chromeos/drive/file_cache.h View 4 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache.cc View 5 chunks +98 lines, -97 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.h View 1 2 3 6 chunks +10 lines, -98 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 2 3 10 chunks +40 lines, -553 lines 0 comments Download
A chrome/browser/chromeos/drive/file_system/download_operation.h View 1 2 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/drive/file_system/download_operation.cc View 1 2 1 chunk +477 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operations.h View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operations.cc View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
hidehiko
Thank you for your review in advance, - hidehiko
7 years, 7 months ago (2013-05-24 06:29:06 UTC) #1
kinaba
lgtm https://codereview.chromium.org/15681009/diff/3002/chrome/browser/chromeos/drive/file_system.cc File chrome/browser/chromeos/drive/file_system.cc (right): https://codereview.chromium.org/15681009/diff/3002/chrome/browser/chromeos/drive/file_system.cc#newcode1159 chrome/browser/chromeos/drive/file_system.cc:1159: void FileSystem::CancelJobInScheduler(JobID id) { You can remove this ...
7 years, 7 months ago (2013-05-24 09:10:23 UTC) #2
hashimoto
lgtm https://codereview.chromium.org/15681009/diff/3002/chrome/browser/chromeos/drive/file_system/download_operation.cc File chrome/browser/chromeos/drive/file_system/download_operation.cc (right): https://codereview.chromium.org/15681009/diff/3002/chrome/browser/chromeos/drive/file_system/download_operation.cc#newcode109 chrome/browser/chromeos/drive/file_system/download_operation.cc:109: FileError AllocateCacheSpace( nit: What this function does is ...
7 years, 7 months ago (2013-05-24 09:48:38 UTC) #3
hidehiko
Thank you for your review. PTAL? https://codereview.chromium.org/15681009/diff/3002/chrome/browser/chromeos/drive/file_system.cc File chrome/browser/chromeos/drive/file_system.cc (right): https://codereview.chromium.org/15681009/diff/3002/chrome/browser/chromeos/drive/file_system.cc#newcode1159 chrome/browser/chromeos/drive/file_system.cc:1159: void FileSystem::CancelJobInScheduler(JobID id) ...
7 years, 7 months ago (2013-05-26 15:39:36 UTC) #4
kinaba
lgtm
7 years, 7 months ago (2013-05-27 01:11:02 UTC) #5
hashimoto
lgtm
7 years, 7 months ago (2013-05-27 02:57:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/15681009/15010
7 years, 7 months ago (2013-05-27 03:04:53 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=118573
7 years, 7 months ago (2013-05-27 04:11:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/15681009/24002
7 years, 7 months ago (2013-05-27 09:25:18 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-27 09:56:21 UTC) #10
kinaba
@hidehiko If it's fine with you, I can take over this patch and commit through ...
7 years, 7 months ago (2013-05-27 09:59:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/15681009/24002
7 years, 7 months ago (2013-05-27 12:55:49 UTC) #12
hidehiko
On 2013/05/27 12:55:49, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 7 months ago (2013-05-27 12:58:15 UTC) #13
commit-bot: I haz the power
7 years, 7 months ago (2013-05-27 17:52:23 UTC) #14
Message was sent while issue was closed.
Change committed as 202450

Powered by Google App Engine
This is Rietveld 408576698