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

Issue 1296483003: Move chrome/browser/chromeos/drive/resource* (+deps) into components/drive. (Closed)

Created:
5 years, 4 months ago by Łukasz Anforowicz
Modified:
5 years, 4 months ago
CC:
chromium-reviews, asanka, sadrul, zea+watch_chromium.org, tzik, blundell+watchlist_chromium.org, rginda+watch_chromium.org, tim+watch_chromium.org, extensions-reviews_chromium.org, droger+watchlist_chromium.org, benjhayden+dwatch_chromium.org, sdefresne+watchlist_chromium.org, pvalenzuela+watch_chromium.org, kalyank, nhiroki, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, maniscalco+watch_chromium.org, hashimoto+watch_chromium.org, tfarina, maxbogue+watch_chromium.org, plaree+watch_chromium.org, kinuko+fileapi, 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

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}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Renamed components/drive/file_system_core_util to file_system_util. #

Patch Set 3 : Rebasing... #

Patch Set 4 : Undoing the renaming done in patchset #2. #

Patch Set 5 : Rebasing... #

Patch Set 6 : Skipping SetPosixFilePermissions on non-POSIX targets. #

Total comments: 2

Patch Set 7 : if defined OS_POSIX -> OS_CHROMEOS in file_cache.cc #

Patch Set 8 : Rebasing... #

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

Messages

Total messages: 28 (11 generated)
Łukasz Anforowicz
Ryo, could you please take a look?
5 years, 4 months ago (2015-08-14 00:06:35 UTC) #2
hashimoto
lgtm https://codereview.chromium.org/1296483003/diff/1/components/drive/file_system_core_util.h File components/drive/file_system_core_util.h (right): https://codereview.chromium.org/1296483003/diff/1/components/drive/file_system_core_util.h#newcode6 components/drive/file_system_core_util.h:6: #define COMPONENTS_DRIVE_FILE_SYSTEM_CORE_UTIL_H_ nit: How about naming this file ...
5 years, 4 months ago (2015-08-14 00:47:54 UTC) #3
Łukasz Anforowicz
Thanks Ryo. Joshua - could you please review the dependency from components/drive into third_party/leveldatabase (this ...
5 years, 4 months ago (2015-08-14 17:14:45 UTC) #5
Łukasz Anforowicz
Tomasz, Satoru, Pawel, Ken, Steven, I've added you as TBR, because I believe changes I ...
5 years, 4 months ago (2015-08-14 17:26:58 UTC) #7
jsbell
DEPS into third_party/leveldatabase lgtm
5 years, 4 months ago (2015-08-17 16:42:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296483003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296483003/40001
5 years, 4 months ago (2015-08-17 16:50:45 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/69921)
5 years, 4 months ago (2015-08-17 17:00:37 UTC) #13
Łukasz Anforowicz
On 2015/08/17 17:00:37, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 4 months ago (2015-08-17 18:32:39 UTC) #14
Łukasz Anforowicz
Ryo - I just wanted to give you a heads-up that I need to revert ...
5 years, 4 months ago (2015-08-19 19:12:29 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296483003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296483003/80001
5 years, 4 months ago (2015-08-19 19:14:58 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/72539)
5 years, 4 months ago (2015-08-19 19:53:07 UTC) #20
Łukasz Anforowicz
Ryo, I think the latest patchset requires a re-review from you please (need to skip ...
5 years, 4 months ago (2015-08-19 20:19:13 UTC) #21
hashimoto
still lgtm https://codereview.chromium.org/1296483003/diff/100001/components/drive/file_cache.cc File components/drive/file_cache.cc (right): https://codereview.chromium.org/1296483003/diff/100001/components/drive/file_cache.cc#newcode249 components/drive/file_cache.cc:249: #if defined(OS_POSIX) nit: Probably OS_CHROMEOS is better. ...
5 years, 4 months ago (2015-08-20 05:34:45 UTC) #22
Łukasz Anforowicz
https://codereview.chromium.org/1296483003/diff/100001/components/drive/file_cache.cc File components/drive/file_cache.cc (right): https://codereview.chromium.org/1296483003/diff/100001/components/drive/file_cache.cc#newcode249 components/drive/file_cache.cc:249: #if defined(OS_POSIX) On 2015/08/20 05:34:45, hashimoto wrote: > nit: ...
5 years, 4 months ago (2015-08-20 19:00:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1296483003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1296483003/140001
5 years, 4 months ago (2015-08-20 22:17:33 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 4 months ago (2015-08-21 01:13:35 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-21 01:14:15 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/6364a0299330a1ac060f0794f4638f82c0dc5cc2
Cr-Commit-Position: refs/heads/master@{#344637}

Powered by Google App Engine
This is Rietveld 408576698