Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Issue 17236002: drive: Create cache directories in DriveIntegrationService (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: Create cache directories in DriveIntegrationService 'meta' directory is hosting both DBs for FileCache and ResourceMetadata. Since these DBs are going to be merged into one, this directory should be created outside FileCache to initialize the shared unified DB. Create directories in DriveIntegrationService. Remove directory related code from FileCache. Move directory name constants to file_system_util.h Pass temporary directory path as an argument, instead of using GetCacheDirectory() from DownloadOperation. BUG=234487 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207160

Patch Set 1 : #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : Move MigrateCacheFilesFromOldDirectories() to file_system_util.c #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -248 lines) Patch
M chrome/browser/chromeos/drive/change_list_loader_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_integration_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_integration_service.cc View 1 2 6 chunks +40 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache.h View 1 2 5 chunks +7 lines, -41 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache.cc View 1 2 15 chunks +25 lines, -116 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache_unittest.cc View 1 2 8 chunks +27 lines, -41 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/download_operation.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/download_operation.cc View 10 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_unittest.cc View 1 3 chunks +25 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_util.h View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_util.cc View 1 2 3 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_util_unittest.cc View 1 2 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/remove_stale_cache_files_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/search_metadata_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/sync_client.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
hashimoto
7 years, 6 months ago (2013-06-17 08:53:21 UTC) #1
kinaba
https://codereview.chromium.org/17236002/diff/4001/chrome/browser/chromeos/drive/file_cache.cc File chrome/browser/chromeos/drive/file_cache.cc (right): https://codereview.chromium.org/17236002/diff/4001/chrome/browser/chromeos/drive/file_cache.cc#newcode708 chrome/browser/chromeos/drive/file_cache.cc:708: cache_file_directory_.DirName().AppendASCII("persistent"); This is getting a little bit complex. Could ...
7 years, 6 months ago (2013-06-18 04:08:51 UTC) #2
hashimoto
https://codereview.chromium.org/17236002/diff/4001/chrome/browser/chromeos/drive/file_cache.cc File chrome/browser/chromeos/drive/file_cache.cc (right): https://codereview.chromium.org/17236002/diff/4001/chrome/browser/chromeos/drive/file_cache.cc#newcode708 chrome/browser/chromeos/drive/file_cache.cc:708: cache_file_directory_.DirName().AppendASCII("persistent"); On 2013/06/18 04:08:51, kinaba wrote: > This is ...
7 years, 6 months ago (2013-06-18 08:58:41 UTC) #3
kinaba
lgtm. thanks!
7 years, 6 months ago (2013-06-18 09:24:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17236002/34001
7 years, 6 months ago (2013-06-18 09:26:39 UTC) #5
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=165027
7 years, 6 months ago (2013-06-18 14:02:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17236002/34001
7 years, 6 months ago (2013-06-19 02:31:33 UTC) #7
commit-bot: I haz the power
7 years, 6 months ago (2013-06-19 03:43:15 UTC) #8
Message was sent while issue was closed.
Change committed as 207160

Powered by Google App Engine
This is Rietveld 408576698