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

Issue 9004019: Cleanup: Removing FileSystemPathManager (Closed)

Created:
9 years ago by kinuko
Modified:
8 years, 11 months ago
Reviewers:
ericu, tzik
CC:
chromium-reviews, jstritar+watch_chromium.org, jam, achuith+watch_chromium.org, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, kinuko+watch, michaeln, Dai Mikurube (NOT FULLTIME)
Visibility:
Public.

Description

Cleanup: Removing FileSystemPathManager - Deprecating FileSystemPathManager, which I believe no longer has a lot of reasons to exist * Changed GetFileSystemTypeString to a regular function in file_system_util * Added GetFileUtil(FileSystemType), GetMountPointProvider(FileSystemType), external_provider() to FileSystemContext * Moved all the tests in file_system_path_manager_unittest to file_system_mount_point_provider_unittest - Also replaced two boolean values in FileSystemContext with a thin FileSystemOptions interface BUG=none TEST=no functional changes Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116482

Patch Set 1 #

Patch Set 2 : build fix #

Total comments: 14

Patch Set 3 : '' #

Total comments: 12

Patch Set 4 : addressed comments #

Patch Set 5 : build fix #

Patch Set 6 : addressed comments #

Patch Set 7 : build fix #

Total comments: 4

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+543 lines, -1019 lines) Patch
M chrome/browser/browsing_data_file_system_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data_file_system_helper_unittest.cc View 1 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data_remover_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 2 3 4 5 6 7 8 chunks +22 lines, -23 lines 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_apitest.cc View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/extension_local_filesystem_apitest.cc View 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/file_manager_util.cc View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M content/browser/file_system/browser_file_system_helper.cc View 1 2 3 4 5 2 chunks +28 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 3 4 5 6 7 4 chunks +3 lines, -4 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.h View 2 chunks +4 lines, -1 line 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M webkit/fileapi/file_system_context.h View 1 2 3 4 5 4 chunks +29 lines, -6 lines 0 comments Download
M webkit/fileapi/file_system_context.cc View 1 2 3 4 5 4 chunks +63 lines, -16 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job_unittest.cc View 1 2 3 4 5 3 chunks +6 lines, -9 lines 0 comments Download
M webkit/fileapi/file_system_file_util_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_mount_point_provider.h View 1 2 3 2 chunks +16 lines, -3 lines 0 comments Download
A + webkit/fileapi/file_system_mount_point_provider_unittest.cc View 1 2 3 4 5 10 chunks +64 lines, -61 lines 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 3 4 5 6 4 chunks +14 lines, -6 lines 0 comments Download
M webkit/fileapi/file_system_operation_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_operation_write_unittest.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
A webkit/fileapi/file_system_options.h View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
A webkit/fileapi/file_system_options.cc View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
D webkit/fileapi/file_system_path_manager.h View 1 chunk +0 lines, -121 lines 0 comments Download
D webkit/fileapi/file_system_path_manager.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -150 lines 0 comments Download
D webkit/fileapi/file_system_path_manager_unittest.cc View 1 chunk +0 lines, -429 lines 0 comments Download
M webkit/fileapi/file_system_quota_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_quota_client.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_quota_client_unittest.cc View 1 2 3 4 5 6 chunks +7 lines, -13 lines 0 comments Download
M webkit/fileapi/file_system_quota_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_test_helper.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_test_helper.cc View 1 2 3 4 5 5 chunks +15 lines, -20 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_url_request_job_unittest.cc View 1 2 3 4 5 4 chunks +6 lines, -8 lines 0 comments Download
M webkit/fileapi/file_system_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_util.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M webkit/fileapi/file_writer_delegate.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/file_writer_delegate_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/local_file_util.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/fileapi/local_file_util_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
A webkit/fileapi/mock_file_system_options.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A webkit/fileapi/mock_file_system_options.cc View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M webkit/fileapi/obfuscated_file_util.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M webkit/fileapi/obfuscated_file_util_unittest.cc View 1 2 3 4 5 3 chunks +13 lines, -7 lines 0 comments Download
M webkit/fileapi/quota_file_util.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/quota_file_util_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.h View 1 2 3 4 5 5 chunks +12 lines, -7 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 1 2 3 4 5 6 7 13 chunks +45 lines, -41 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider_unittest.cc View 1 2 3 4 5 6 chunks +14 lines, -25 lines 0 comments Download
M webkit/fileapi/webkit_fileapi.gypi View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/support/webkit_support.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_file_system.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kinuko
Sorry for a lot of churn, I want to get rid of FileSystemPathManager as (in ...
9 years ago (2011-12-20 15:05:27 UTC) #1
ericu
Looks good overall. Just a few questions. http://codereview.chromium.org/9004019/diff/7002/chrome/browser/browsing_data_file_system_helper_unittest.cc File chrome/browser/browsing_data_file_system_helper_unittest.cc (right): http://codereview.chromium.org/9004019/diff/7002/chrome/browser/browsing_data_file_system_helper_unittest.cc#newcode9 chrome/browser/browsing_data_file_system_helper_unittest.cc:9: #include "base/file_util.h" ...
9 years ago (2011-12-20 18:12:59 UTC) #2
tzik
http://codereview.chromium.org/9004019/diff/7004/webkit/fileapi/file_system_mount_point_provider.h File webkit/fileapi/file_system_mount_point_provider.h (right): http://codereview.chromium.org/9004019/diff/7004/webkit/fileapi/file_system_mount_point_provider.h#newcode11 webkit/fileapi/file_system_mount_point_provider.h:11: #include "base/callback.h" can be #include "base/callback_forward.h"? http://codereview.chromium.org/9004019/diff/7004/webkit/fileapi/file_system_mount_point_provider_unittest.cc File webkit/fileapi/file_system_mount_point_provider_unittest.cc ...
9 years ago (2011-12-21 02:52:32 UTC) #3
kinuko
http://codereview.chromium.org/9004019/diff/7002/chrome/browser/browsing_data_file_system_helper_unittest.cc File chrome/browser/browsing_data_file_system_helper_unittest.cc (right): http://codereview.chromium.org/9004019/diff/7002/chrome/browser/browsing_data_file_system_helper_unittest.cc#newcode9 chrome/browser/browsing_data_file_system_helper_unittest.cc:9: #include "base/file_util.h" On 2011/12/20 18:12:59, ericu wrote: > Why ...
9 years ago (2011-12-21 13:00:50 UTC) #4
ericu
http://codereview.chromium.org/9004019/diff/7002/webkit/fileapi/file_system_context.h File webkit/fileapi/file_system_context.h (right): http://codereview.chromium.org/9004019/diff/7002/webkit/fileapi/file_system_context.h#newcode43 webkit/fileapi/file_system_context.h:43: // The ownership of |options| is transferred from the ...
9 years ago (2011-12-21 22:22:48 UTC) #5
kinuko
http://codereview.chromium.org/9004019/diff/7002/webkit/fileapi/file_system_context.h File webkit/fileapi/file_system_context.h (right): http://codereview.chromium.org/9004019/diff/7002/webkit/fileapi/file_system_context.h#newcode43 webkit/fileapi/file_system_context.h:43: // The ownership of |options| is transferred from the ...
9 years ago (2011-12-22 05:28:39 UTC) #6
kinuko
http://codereview.chromium.org/9004019/diff/7002/webkit/fileapi/file_system_context.h File webkit/fileapi/file_system_context.h (right): http://codereview.chromium.org/9004019/diff/7002/webkit/fileapi/file_system_context.h#newcode43 webkit/fileapi/file_system_context.h:43: // The ownership of |options| is transferred from the ...
8 years, 12 months ago (2011-12-27 17:33:26 UTC) #7
ericu
LGTM http://codereview.chromium.org/9004019/diff/23007/webkit/fileapi/file_system_context.cc File webkit/fileapi/file_system_context.cc (right): http://codereview.chromium.org/9004019/diff/23007/webkit/fileapi/file_system_context.cc#newcode105 webkit/fileapi/file_system_context.cc:105: if (!mount_point_provider) You removed a DCHECK(mount_point_provider). Should it ...
8 years, 11 months ago (2012-01-03 22:34:24 UTC) #8
kinuko
8 years, 11 months ago (2012-01-05 09:40:18 UTC) #9
Thanks, will be submitting.

http://codereview.chromium.org/9004019/diff/23007/webkit/fileapi/file_system_...
File webkit/fileapi/file_system_context.cc (right):

http://codereview.chromium.org/9004019/diff/23007/webkit/fileapi/file_system_...
webkit/fileapi/file_system_context.cc:105: if (!mount_point_provider)
On 2012/01/03 22:34:24, ericu wrote:
> You removed a DCHECK(mount_point_provider).  Should it be able to be NULL
here? 
> If not, please bring it back.

I found this could be NULL in a pepper testing code.

http://codereview.chromium.org/9004019/diff/23007/webkit/support/webkit_suppo...
File webkit/support/webkit_support.gypi (right):

http://codereview.chromium.org/9004019/diff/23007/webkit/support/webkit_suppo...
webkit/support/webkit_support.gypi:63:
'<(DEPTH)/webkit/fileapi/mock_file_system_options.h',
On 2012/01/03 22:34:24, ericu wrote:
> Do these need to be here, given that they're in webkit_support_common below?

You're right, we don't need them here.

Powered by Google App Engine
This is Rietveld 408576698