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

Issue 7174002: Change {Obfuscated|Local}FileSystemFileUtil non-Singleton to take an underlying *FileUtil. (Closed)

Created:
9 years, 6 months ago by Dai Mikurube (NOT FULLTIME)
Modified:
9 years, 5 months ago
CC:
chromium-reviews, kinuko+watch, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Change {Obfuscated|Local}FileSystemFileUtil non-Singleton to take an underlying *FileUtil. This change : * reduces dependency between FileUtils, and * enables more flexible stacking of FileSystemFileUtil, such as {Obfuscated|Local}FSFU without any quota operation. BUG=none TEST=*FileUtilTest.*,FileSystemPathManagerTest.*,SandboxMountPointProvider.*,FileSystem*OperationTest.*,FileWriterDelegateTest.*,FileSystemQuotaTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91547

Patch Set 1 #

Patch Set 2 : Fixed extension_file_browser_private_api.cc for new LocalFileSystemFileUtil. #

Patch Set 3 : Removed unnecessary QuotaFU layer from tests, and changed ObfuscatedFSFU to use underlying FU. #

Patch Set 4 : Rebased, and added a guard not to call GetInstance() of ObfuscatedFileSystemFileUtil. #

Patch Set 5 : Fixed memery leak at LocalFSFUTest, and rebased. #

Total comments: 14

Patch Set 6 : Moved local_file_util from FileSystemPathManager to CrosMountPointProvider. #

Patch Set 7 : Reflected the comments and fixed the compilation error. #

Patch Set 8 : Fixed compilation error. #

Patch Set 9 : Reflected the comments and rebased. #

Patch Set 10 : Removed unnecessary lines from ChromeOS code. #

Total comments: 6

Patch Set 11 : Reflected the comments. #

Patch Set 12 : Added comments. #

Patch Set 13 : Modified the comment. #

Total comments: 8

Patch Set 14 : Reflected the comments. #

Patch Set 15 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -80 lines) Patch
M chrome/browser/extensions/extension_file_browser_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -7 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -0 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_file_util_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +2 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_operation_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_operation_write_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_path_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_quota_unittest.cc View 1 2 3 4 5 6 4 chunks +6 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_test_helper.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M webkit/fileapi/local_file_system_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +8 lines, -10 lines 0 comments Download
M webkit/fileapi/local_file_system_file_util.cc View 15 chunks +17 lines, -17 lines 0 comments Download
M webkit/fileapi/local_file_system_file_util_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -5 lines 0 comments Download
M webkit/fileapi/obfuscated_file_system_file_util.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -2 lines 0 comments Download
M webkit/fileapi/obfuscated_file_system_file_util.cc View 1 2 3 4 5 15 chunks +19 lines, -18 lines 0 comments Download
M webkit/fileapi/obfuscated_file_system_file_util_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Dai Mikurube (NOT FULLTIME)
eric, kinuko, I'm trying this change to change some *FileUtils to take an underlying *FileUtils. ...
9 years, 6 months ago (2011-06-17 06:17:59 UTC) #1
ericu
I like the general idea, but have a few tweaks to the implementation to suggest. ...
9 years, 6 months ago (2011-06-17 20:32:07 UTC) #2
Dai Mikurube (NOT FULLTIME)
Thanks, Eric. Updated the patch. Could you take a glance at this? http://codereview.chromium.org/7174002/diff/8001/chrome/browser/extensions/extension_file_browser_private_api.cc File chrome/browser/extensions/extension_file_browser_private_api.cc ...
9 years, 6 months ago (2011-06-23 08:13:32 UTC) #3
kinuko
I might wonder if we really need one instance per operation for this wiring? The ...
9 years, 6 months ago (2011-06-28 09:12:26 UTC) #4
kinuko
(Please ignore my previous comment, seems like after some iterations this patch no longer creates ...
9 years, 5 months ago (2011-07-01 07:48:02 UTC) #5
Dai Mikurube (NOT FULLTIME)
Thank you for the comments. :) http://codereview.chromium.org/7174002/diff/26001/webkit/fileapi/file_system_path_manager.cc File webkit/fileapi/file_system_path_manager.cc (right): http://codereview.chromium.org/7174002/diff/26001/webkit/fileapi/file_system_path_manager.cc#newcode171 webkit/fileapi/file_system_path_manager.cc:171: return external_provider_->GetFileSystemFileUtil(); On ...
9 years, 5 months ago (2011-07-04 06:14:52 UTC) #6
kinuko
Sorry for my late reviews. I think this lgtm. http://codereview.chromium.org/7174002/diff/26001/webkit/fileapi/local_file_system_file_util.h File webkit/fileapi/local_file_system_file_util.h (right): http://codereview.chromium.org/7174002/diff/26001/webkit/fileapi/local_file_system_file_util.h#newcode38 webkit/fileapi/local_file_system_file_util.h:38: ...
9 years, 5 months ago (2011-07-05 03:13:02 UTC) #7
Dai Mikurube (NOT FULLTIME)
Thanks. I'll be committing this change when try bots get happy. http://codereview.chromium.org/7174002/diff/26001/webkit/fileapi/local_file_system_file_util.h File webkit/fileapi/local_file_system_file_util.h (right): ...
9 years, 5 months ago (2011-07-05 05:30:11 UTC) #8
kinuko
lgtm with a few more nits. http://codereview.chromium.org/7174002/diff/34001/webkit/fileapi/local_file_system_file_util.h File webkit/fileapi/local_file_system_file_util.h (right): http://codereview.chromium.org/7174002/diff/34001/webkit/fileapi/local_file_system_file_util.h#newcode15 webkit/fileapi/local_file_system_file_util.h:15: #include "base/memory/ref_counted.h" nit: ...
9 years, 5 months ago (2011-07-05 06:35:23 UTC) #9
Dai Mikurube (NOT FULLTIME)
Thanks. Updated and submitted to try bots including the linux_chromeos bot. http://codereview.chromium.org/7174002/diff/34001/webkit/fileapi/local_file_system_file_util.h File webkit/fileapi/local_file_system_file_util.h (right): ...
9 years, 5 months ago (2011-07-05 08:05:40 UTC) #10
Dai Mikurube (NOT FULLTIME)
The try bot error in Windows:pyauto_functional_tests looks not related to this change. Checked the "Commit" ...
9 years, 5 months ago (2011-07-06 10:03:24 UTC) #11
commit-bot: I haz the power
9 years, 5 months ago (2011-07-06 10:50:52 UTC) #12
Change committed as 91547

Powered by Google App Engine
This is Rietveld 408576698