|
Move chrome/browser/chromeos/drive/resource* (+deps) into components/drive.
Files moved from chrome/browser/chromeos/drive into components/drive:
- fake_free_disk_space_getter*
- file_cache*
- file_system_core_util*
- resource_entry_conversion*
- resource_metadata*
- resource_metadata_storage*
Other changes:
- Removed unneeded includes where needed and possible.
- Hidden usage of cryptohome::kMinFreeSpaceInBytes behind OS_CHROMEOS ifdefs
and provided an equivalent constant shared by other OS-es.
- Hidden usage of base::SetPosixFilePermissions behind OS_CHROMEOS ifdef
as it was only needed to support cros_disks service on ChromeOS.
- Moved 3 functions back from file_system_core_util into file_system_core.
The 3 functions are ChromeOS-specific (dealing with where GDrive is mounted
on ChromeOS) and moving them back helps avoid adding a new dependency on
components/drive from chromeos directories.
- When adding a third_party/leveldatabase dependency to gyp/gn/deps files
under components/drive, I realized that gn is not consistent with gyp, by
not explicitly listing a dependency on third_party/cacheinvalidation in
components/drive/BUILD.gn.
Test steps:
1. Verify that things still build via GYP (and unit tests pass).
$ GYP_DEFINES="use_goma=1 gomadir=... chromeos=1" gclient sync
$ ninja -C out/Debug -j 150 chrome unit_tests \
interactive_ui_tests browser_tests drive
$ out/Debug/unit_tests
2. Verify that things still build via GN.
$ gn gen out/Default --args='target_os="chromeos" use_goma=true'
$ ninja -C out/Default -j 150 chrome unit_tests \
interactive_ui_tests browser_tests components/drive
TEST=Please see "Test steps" above.
BUG= 257943, 498951
TBR=mtomasz@chromium.org, satorux@chromium.org, phajdan.jr@chromium.org, rockot@chromium.org, stevenjb@chromium.org,
Committed: https://crrev.com/6364a0299330a1ac060f0794f4638f82c0dc5cc2
Cr-Commit-Position: refs/heads/master@{#344637}
Total comments: 3
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+306 lines, -6063 lines) |
Patch |
 |
M |
chrome/browser/chromeos/drive/change_list_loader.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/change_list_loader_unittest.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/change_list_processor.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/change_list_processor_unittest.cc
|
View
|
2
3
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/directory_loader.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/directory_loader_unittest.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/download_handler_unittest.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/drive_integration_service.h
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/drive_integration_service.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fake_file_system.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fake_file_system_unittest.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/fake_free_disk_space_getter.h
|
View
|
|
1 chunk |
+0 lines, -44 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/fake_free_disk_space_getter.cc
|
View
|
|
1 chunk |
+0 lines, -31 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_cache.h
|
View
|
|
1 chunk |
+0 lines, -196 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_cache.cc
|
View
|
|
1 chunk |
+0 lines, -617 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_cache_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -562 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system.cc
|
View
|
2
3
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/copy_operation.cc
|
View
|
2
3
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/copy_operation_unittest.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/create_directory_operation.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/create_file_operation.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/download_operation.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/move_operation.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/open_file_operation.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/open_file_operation_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/operation_test_base.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/remove_operation.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/search_operation.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/set_property_operation.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/touch_operation.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/touch_operation_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/truncate_operation.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/truncate_operation_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_system_core_util.h
|
View
|
|
1 chunk |
+0 lines, -102 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_system_core_util.cc
|
View
|
|
1 chunk |
+0 lines, -180 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_system_core_util_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -146 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system_interface.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system_unittest.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system_util.h
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system_util.cc
|
View
|
2
3
|
3 chunks |
+37 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system_util_unittest.cc
|
View
|
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_write_watcher.h
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl_unittest.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fileapi/webkit_file_stream_writer_impl.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/remove_stale_cache_files.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/remove_stale_cache_files_unittest.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_entry_conversion.h
|
View
|
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_entry_conversion.cc
|
View
|
|
1 chunk |
+0 lines, -141 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_entry_conversion_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -374 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_metadata.h
|
View
|
|
1 chunk |
+0 lines, -146 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_metadata.cc
|
View
|
|
1 chunk |
+0 lines, -607 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_metadata_storage.h
|
View
|
|
1 chunk |
+0 lines, -172 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_metadata_storage.cc
|
View
|
|
1 chunk |
+0 lines, -1064 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_metadata_storage_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -633 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/resource_metadata_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -709 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/search_metadata.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/search_metadata_unittest.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync/entry_revert_performer.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync/entry_revert_performer_unittest.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync/entry_update_performer.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync/remove_performer.cc
|
View
|
2
3
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync/remove_performer_unittest.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync_client.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync_client.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/sync_client_unittest.cc
|
View
|
2
3
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/write_on_cache_file.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/extensions/file_manager/job_event_router.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/file_manager/file_browser_handlers.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/file_manager/file_tasks.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/file_manager/fileapi_util.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/file_manager/filesystem_api_util.cc
|
View
|
2
3
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/file_manager/open_with_browser.cc
|
View
|
2
3
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/file_manager/path_util.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/file_manager/volume_manager.cc
|
View
|
2
3
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/fileapi/external_file_url_util_unittest.cc
|
View
|
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/preferences.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/chrome_download_manager_delegate.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_dir_policy_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_dir_policy_handler_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/save_package_file_picker.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/webstore_installer.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/chrome_screenshot_grabber.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_chromeos.gypi
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/drive.gypi
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/drive/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/drive/DEPS
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
components/drive/fake_free_disk_space_getter.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
components/drive/fake_free_disk_space_getter.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
components/drive/file_cache.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
components/drive/file_cache.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
 |
A + |
components/drive/file_cache_unittest.cc
|
View
|
2
3
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
components/drive/file_system_core_util.h
|
View
|
2
3
|
3 chunks |
+3 lines, -15 lines |
0 comments
|
Download
|
 |
A + |
components/drive/file_system_core_util.cc
|
View
|
2
3
|
3 chunks |
+1 line, -39 lines |
0 comments
|
Download
|
 |
A + |
components/drive/file_system_core_util_unittest.cc
|
View
|
2
3
|
3 chunks |
+1 line, -48 lines |
0 comments
|
Download
|
 |
A + |
components/drive/resource_entry_conversion.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
components/drive/resource_entry_conversion.cc
|
View
|
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
components/drive/resource_entry_conversion_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
components/drive/resource_metadata.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
components/drive/resource_metadata.cc
|
View
|
2
3
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
components/drive/resource_metadata_storage.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
components/drive/resource_metadata_storage.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
components/drive/resource_metadata_storage_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
components/drive/resource_metadata_unittest.cc
|
View
|
2
3
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 28 (11 generated)
|