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

Issue 265833003: drive: Stop checking free disk space in ResourceMetadata::Initialize (Closed)

Created:
6 years, 7 months ago by hashimoto
Modified:
6 years, 7 months ago
Reviewers:
kinaba
CC:
chromium-reviews, nkostylev+watch_chromium.org, hashimoto+watch_chromium.org, tfarina, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

drive: Stop checking free disk space in ResourceMetadata::Initialize Instead, perform stricter error checks. Stop calling EnoughDiskSpaceIsAvailableForDBOperation() in ResourceMetadata::Initialize(). To distinguish serious failures from not-found cases, change the return type of ResourceMetadataStorage's methods to FileError. BUG=319410 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269541

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -294 lines) Patch
M chrome/browser/chromeos/drive/file_cache.cc View 18 chunks +64 lines, -38 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata.h View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata.cc View 1 2 18 chunks +175 lines, -111 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_storage.h View 3 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_storage.cc View 17 chunks +79 lines, -49 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_storage_unittest.cc View 22 chunks +103 lines, -77 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hashimoto
Please review. Some methods of FileCache and ResourceMetadata are still ignoring errors as changing the ...
6 years, 7 months ago (2014-05-08 07:58:49 UTC) #1
kinaba
lgtm https://codereview.chromium.org/265833003/diff/60002/chrome/browser/chromeos/drive/resource_metadata.cc File chrome/browser/chromeos/drive/resource_metadata.cc (right): https://codereview.chromium.org/265833003/diff/60002/chrome/browser/chromeos/drive/resource_metadata.cc#newcode241 chrome/browser/chromeos/drive/resource_metadata.cc:241: else if (error != FILE_ERROR_NOT_FOUND) maybe: error = ...
6 years, 7 months ago (2014-05-09 01:57:28 UTC) #2
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 7 months ago (2014-05-09 05:04:31 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/265833003/60002
6 years, 7 months ago (2014-05-09 05:09:07 UTC) #4
hashimoto
The CQ bit was unchecked by hashimoto@chromium.org
6 years, 7 months ago (2014-05-09 05:21:49 UTC) #5
hashimoto
https://codereview.chromium.org/265833003/diff/60002/chrome/browser/chromeos/drive/resource_metadata.cc File chrome/browser/chromeos/drive/resource_metadata.cc (right): https://codereview.chromium.org/265833003/diff/60002/chrome/browser/chromeos/drive/resource_metadata.cc#newcode241 chrome/browser/chromeos/drive/resource_metadata.cc:241: else if (error != FILE_ERROR_NOT_FOUND) On 2014/05/09 01:57:28, kinaba ...
6 years, 7 months ago (2014-05-09 05:28:47 UTC) #6
kinaba
lgtm https://codereview.chromium.org/265833003/diff/100001/chrome/browser/chromeos/drive/resource_metadata.cc File chrome/browser/chromeos/drive/resource_metadata.cc (right): https://codereview.chromium.org/265833003/diff/100001/chrome/browser/chromeos/drive/resource_metadata.cc#newcode247 chrome/browser/chromeos/drive/resource_metadata.cc:247: // We don't check for ID collisions as ...
6 years, 7 months ago (2014-05-09 05:31:26 UTC) #7
hashimoto
https://codereview.chromium.org/265833003/diff/100001/chrome/browser/chromeos/drive/resource_metadata.cc File chrome/browser/chromeos/drive/resource_metadata.cc (right): https://codereview.chromium.org/265833003/diff/100001/chrome/browser/chromeos/drive/resource_metadata.cc#newcode247 chrome/browser/chromeos/drive/resource_metadata.cc:247: // We don't check for ID collisions as its ...
6 years, 7 months ago (2014-05-09 05:34:41 UTC) #8
hashimoto
The CQ bit was checked by hashimoto@chromium.org
6 years, 7 months ago (2014-05-09 05:34:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/265833003/120001
6 years, 7 months ago (2014-05-09 05:36:53 UTC) #10
commit-bot: I haz the power
Change committed as 269541
6 years, 7 months ago (2014-05-10 06:19:54 UTC) #11
hashimoto
6 years, 7 months ago (2014-05-12 02:28:12 UTC) #12
Message was sent while issue was closed.
On 2014/05/10 06:19:54, I haz the power (commit-bot) wrote:
> Change committed as 269541

BUG number was wrong.
The correct number is 263064.

Powered by Google App Engine
This is Rietveld 408576698