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

Issue 17249004: drive: Use ResourceMetadataStorage from FileCache (Closed)

Created:
7 years, 6 months ago by hashimoto
Modified:
7 years, 6 months ago
Reviewers:
kinaba
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

drive: Use ResourceMetadataStorage from FileCache Add ResourceMetadataStorage::opened_existing_db() to trigger cache file scan at appropriate timing. BUG=234487 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207841

Patch Set 1 : #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : More precise old DB handling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -123 lines) Patch
M chrome/browser/chromeos/drive/change_list_loader_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/drive_integration_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_cache.h View 1 2 3 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache.cc View 1 2 3 20 chunks +57 lines, -59 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache_metadata.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache_unittest.cc View 1 2 3 8 chunks +47 lines, -31 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system_unittest.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/drive/remove_stale_cache_files_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_storage.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_storage.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/search_metadata_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client_unittest.cc View 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hashimoto
Please review. This patch depends on https://codereview.chromium.org/17004011/ ("DriveIntegrationService owns ResourceMetadataStorage")
7 years, 6 months ago (2013-06-21 07:07:11 UTC) #1
kinaba
https://codereview.chromium.org/17249004/diff/13001/chrome/browser/chromeos/drive/file_cache.cc File chrome/browser/chromeos/drive/file_cache.cc (right): https://codereview.chromium.org/17249004/diff/13001/chrome/browser/chromeos/drive/file_cache.cc#newcode824 chrome/browser/chromeos/drive/file_cache.cc:824: } When old_data.Initialize() failed, shouldn't we return false? It ...
7 years, 6 months ago (2013-06-21 07:32:50 UTC) #2
hashimoto
https://codereview.chromium.org/17249004/diff/13001/chrome/browser/chromeos/drive/file_cache.cc File chrome/browser/chromeos/drive/file_cache.cc (right): https://codereview.chromium.org/17249004/diff/13001/chrome/browser/chromeos/drive/file_cache.cc#newcode824 chrome/browser/chromeos/drive/file_cache.cc:824: } On 2013/06/21 07:32:50, kinaba wrote: > When old_data.Initialize() ...
7 years, 6 months ago (2013-06-21 08:23:41 UTC) #3
kinaba
lgtm LGTM
7 years, 6 months ago (2013-06-21 08:30:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/17249004/19001
7 years, 6 months ago (2013-06-21 08:33:17 UTC) #5
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 16:00:11 UTC) #6
Message was sent while issue was closed.
Change committed as 207841

Powered by Google App Engine
This is Rietveld 408576698