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

Issue 9016020: Cleanup FileSystemOperation for preparing for adding FSO-factory method (Closed)

Created:
9 years ago by kinuko
Modified:
8 years, 11 months ago
Reviewers:
ericu, satorux1, 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
Visibility:
Public.

Description

Cleanup FileSystemOperation for preparing for adding FSO-factory method 1. Move OpenFileSystem() to FileSystemContext 2. Change Cancel() not to take another FileSystemOperation These two changes are made so that all the operations that require FileSystemOperation take target path URL. 3. Did some related code cleanups in FileSystemMountPointProvider: - Renamed ValidateFileSystemRootAndGetURL() to ValidateFileSystemRoot() as we no longer need to return RootURL - Renamed ValidateFileSystemRootAndGetPathOnFileThread() to GetFileSystemRootPathOnFileThread() for the sake of simplicity - Reimplemented SandboxMPP::GetRootPathTask using PostTaskAndReply Patch from http://codereview.chromium.org/9004019/ BUG=none TEST=existing tests should pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117197

Patch Set 1 : '' #

Total comments: 2

Patch Set 2 : more cleanup around ValidateFileSystemRoot #

Total comments: 13

Patch Set 3 : '' #

Patch Set 4 : build fix #

Total comments: 16

Patch Set 5 : addressed comments #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -416 lines) Patch
M chrome/browser/browsing_data_file_system_helper_unittest.cc View 1 2 3 5 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 2 3 4 10 chunks +61 lines, -47 lines 0 comments Download
M content/browser/file_system/file_system_dispatcher_host.cc View 1 2 3 4 5 8 chunks +24 lines, -14 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.h View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 2 3 3 chunks +10 lines, -14 lines 0 comments Download
M webkit/fileapi/file_system_context.h View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_context.cc View 1 2 3 3 chunks +35 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job.cc View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_dir_url_request_job_unittest.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider.h View 1 2 3 4 2 chunks +21 lines, -23 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/file_system_operation.h View 1 2 3 5 chunks +4 lines, -17 lines 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 2 3 4 5 7 chunks +27 lines, -79 lines 0 comments Download
M webkit/fileapi/file_system_operation_interface.h View 1 2 3 chunks +26 lines, -6 lines 0 comments Download
M webkit/fileapi/file_system_test_helper.cc View 1 2 3 5 chunks +6 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job.cc View 1 2 3 3 chunks +11 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_url_request_job_unittest.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M webkit/fileapi/file_system_util.h View 1 2 3 4 1 chunk +12 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_util.cc View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M webkit/fileapi/local_file_util.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.h View 1 2 3 3 chunks +10 lines, -11 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 1 2 3 4 23 chunks +89 lines, -135 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider_unittest.cc View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M webkit/tools/test_shell/simple_file_system.cc View 1 2 3 4 chunks +18 lines, -8 lines 0 comments Download
M webkit/tools/test_shell/simple_file_writer.cc View 1 2 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
tzik
http://codereview.chromium.org/9016020/diff/3001/webkit/fileapi/sandbox_mount_point_provider.cc File webkit/fileapi/sandbox_mount_point_provider.cc (right): http://codereview.chromium.org/9016020/diff/3001/webkit/fileapi/sandbox_mount_point_provider.cc#newcode371 webkit/fileapi/sandbox_mount_point_provider.cc:371: origin_url, type, old_base_path(), create), Could we add sandbox_file_util_ as ...
9 years ago (2011-12-22 06:49:20 UTC) #1
kinuko
http://codereview.chromium.org/9016020/diff/3001/webkit/fileapi/sandbox_mount_point_provider.cc File webkit/fileapi/sandbox_mount_point_provider.cc (right): http://codereview.chromium.org/9016020/diff/3001/webkit/fileapi/sandbox_mount_point_provider.cc#newcode371 webkit/fileapi/sandbox_mount_point_provider.cc:371: origin_url, type, old_base_path(), create), On 2011/12/22 06:49:20, tzik wrote: ...
9 years ago (2011-12-22 07:04:33 UTC) #2
satorux1
Looks like nice refactoring, but I'm not familiar enough with the code to approve the ...
8 years, 12 months ago (2011-12-27 18:56:37 UTC) #3
kinuko
Thanks, addressed comments. http://codereview.chromium.org/9016020/diff/7001/webkit/fileapi/file_system_context.h File webkit/fileapi/file_system_context.h (right): http://codereview.chromium.org/9016020/diff/7001/webkit/fileapi/file_system_context.h#newcode90 webkit/fileapi/file_system_context.h:90: // Opens the filesystem for the ...
8 years, 12 months ago (2011-12-28 10:59:34 UTC) #4
kinuko
(Added the correct eric as a reviewer)
8 years, 11 months ago (2012-01-05 12:01:19 UTC) #5
kinuko
(Re-publishing this one as I haven't explicitly done that yet) This change is for preparing ...
8 years, 11 months ago (2012-01-06 12:44:23 UTC) #6
ericu
LGTM. Thanks for doing this--much of it's been needed for a really long time! http://codereview.chromium.org/9016020/diff/24029/webkit/fileapi/file_system_context.h ...
8 years, 11 months ago (2012-01-09 18:44:44 UTC) #7
tzik
lgtm http://codereview.chromium.org/9016020/diff/24029/chrome/browser/extensions/extension_file_browser_private_api.cc File chrome/browser/extensions/extension_file_browser_private_api.cc (right): http://codereview.chromium.org/9016020/diff/24029/chrome/browser/extensions/extension_file_browser_private_api.cc#newcode707 chrome/browser/extensions/extension_file_browser_private_api.cc:707: scoped_refptr<const Extension> extension, can be const&? http://codereview.chromium.org/9016020/diff/24029/webkit/fileapi/file_system_mount_point_provider.h File ...
8 years, 11 months ago (2012-01-10 08:31:13 UTC) #8
kinuko
Thanks, I updated the code. Will be submitting if I see any other issues. http://codereview.chromium.org/9016020/diff/24029/chrome/browser/extensions/extension_file_browser_private_api.cc ...
8 years, 11 months ago (2012-01-10 09:48:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/9016020/40005
8 years, 11 months ago (2012-01-11 03:45:12 UTC) #10
commit-bot: I haz the power
8 years, 11 months ago (2012-01-11 03:45:28 UTC) #11
Presubmit check for 9016020-40005 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit ERRORS **
Missing LGTM from an OWNER for:
webkit/tools/test_shell/simple_file_system.cc,webkit/tools/test_shell/simple_file_writer.cc

Presubmit checks took 2.9s to calculate.

Powered by Google App Engine
This is Rietveld 408576698