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

Issue 1414753005: Evict drive cache with file download from website if necessary. (Closed)

Created:
5 years, 1 month ago by yawano
Modified:
5 years, 1 month ago
Reviewers:
hashimoto
CC:
chromium-reviews, tfarina, oshima+watch_chromium.org, 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

Evict drive cache with file download from website if necessary. BUG=524910 TEST=unit_tests:DownloadHandlerTest.* Committed: https://crrev.com/4712d90aab1107b95daa715ff23951b836cf1d88 Cr-Commit-Position: refs/heads/master@{#358234}

Patch Set 1 #

Patch Set 2 : Free disk space immediately in OnDownloadCreated. #

Total comments: 10

Patch Set 3 : Support multiple in-progress downloads. #

Patch Set 4 : Request 0 byte for unknown size download. #

Patch Set 5 : Correct spell. #

Total comments: 12

Patch Set 6 : Address comments. #

Total comments: 6

Patch Set 7 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -4 lines) Patch
M chrome/browser/chromeos/drive/download_handler.h View 1 2 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/download_handler.cc View 1 2 3 4 5 6 5 chunks +74 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/download_handler_unittest.cc View 1 2 3 4 5 6 4 chunks +156 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
yawano
PTAL. Thank you!
5 years, 1 month ago (2015-10-28 06:51:15 UTC) #2
yawano
@hashimoto: Changed to immediately free disk space in OnDownloadCreated. PTAL. Thank you!
5 years, 1 month ago (2015-10-28 07:50:25 UTC) #3
hashimoto
https://codereview.chromium.org/1414753005/diff/20001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/1414753005/diff/20001/chrome/browser/chromeos/drive/download_handler.cc#newcode38 chrome/browser/chromeos/drive/download_handler.cc:38: const int64 kDefaultRequestSpace = 512 * (1 << 20); ...
5 years, 1 month ago (2015-10-28 09:06:16 UTC) #4
yawano
Thank you for the review! Reply to some comments. https://codereview.chromium.org/1414753005/diff/20001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/1414753005/diff/20001/chrome/browser/chromeos/drive/download_handler.cc#newcode38 chrome/browser/chromeos/drive/download_handler.cc:38: ...
5 years, 1 month ago (2015-10-28 09:29:44 UTC) #5
yawano
Support multiple in-progress downloads with new patch set. PTAL again. Thank you! https://codereview.chromium.org/1414753005/diff/20001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc ...
5 years, 1 month ago (2015-10-29 02:52:43 UTC) #6
yawano
@hashimoto: As we talked offline, changed to request 0 byte for unknown size download. We ...
5 years, 1 month ago (2015-10-30 07:04:48 UTC) #7
hashimoto
Sorry for being slow to respond. https://codereview.chromium.org/1414753005/diff/80001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/1414753005/diff/80001/chrome/browser/chromeos/drive/download_handler.cc#newcode291 chrome/browser/chromeos/drive/download_handler.cc:291: notifier_->GetManager()->GetAllDownloads(&downloads); GetManager() can ...
5 years, 1 month ago (2015-10-30 09:33:44 UTC) #8
yawano
PTAL again. Thank you! https://codereview.chromium.org/1414753005/diff/80001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/1414753005/diff/80001/chrome/browser/chromeos/drive/download_handler.cc#newcode291 chrome/browser/chromeos/drive/download_handler.cc:291: notifier_->GetManager()->GetAllDownloads(&downloads); Yes, we should. Thank ...
5 years, 1 month ago (2015-11-02 07:26:20 UTC) #9
hashimoto
lgtm https://codereview.chromium.org/1414753005/diff/100001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/1414753005/diff/100001/chrome/browser/chromeos/drive/download_handler.cc#newcode292 chrome/browser/chromeos/drive/download_handler.cc:292: if (notifier_ != nullptr && notifier_->GetManager() != nullptr) ...
5 years, 1 month ago (2015-11-02 20:58:00 UTC) #10
yawano
Thank you for the review! https://codereview.chromium.org/1414753005/diff/100001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/1414753005/diff/100001/chrome/browser/chromeos/drive/download_handler.cc#newcode292 chrome/browser/chromeos/drive/download_handler.cc:292: if (notifier_ != nullptr ...
5 years, 1 month ago (2015-11-05 03:51:26 UTC) #11
hashimoto
lgtm
5 years, 1 month ago (2015-11-05 19:13:54 UTC) #12
yawano
On 2015/11/05 19:13:54, hashimoto wrote: > lgtm Thank you!
5 years, 1 month ago (2015-11-06 02:09:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414753005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414753005/120001
5 years, 1 month ago (2015-11-06 02:10:05 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-06 02:16:21 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 02:17:01 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4712d90aab1107b95daa715ff23951b836cf1d88
Cr-Commit-Position: refs/heads/master@{#358234}

Powered by Google App Engine
This is Rietveld 408576698