|
Remove CloseFile from FileSystem.
CloseFile has a potential issue, which may close a file different from opened
one. To avoid such a case, by this CL, OpenFile starts to return a closure,
which should be called on the file closing.
This is the same technique used in fileapi implementation.
BUG= 259184
TEST=Ran unit_tests and tested manually.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213366
Total comments: 12
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+207 lines, -471 lines) |
Patch |
 |
M |
chrome/browser/chromeos/drive/async_file_util.cc
|
View
|
1
2
3
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/dummy_file_system.h
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fake_file_system.h
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fake_file_system.cc
|
View
|
|
2 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system.h
|
View
|
|
6 chunks |
+2 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system.cc
|
View
|
|
6 chunks |
+3 lines, -18 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_system/close_file_operation.h
|
View
|
|
1 chunk |
+0 lines, -70 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_system/close_file_operation.cc
|
View
|
|
1 chunk |
+0 lines, -83 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/chromeos/drive/file_system/close_file_operation_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -105 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/open_file_operation.h
|
View
|
1
|
2 chunks |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/open_file_operation.cc
|
View
|
1
|
6 chunks |
+28 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system/open_file_operation_unittest.cc
|
View
|
1
2
3
|
14 chunks |
+62 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system_interface.h
|
View
|
1
2
3
|
4 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_system_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+5 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_write_helper.h
|
View
|
1
2
3
|
3 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_write_helper.cc
|
View
|
1
2
3
|
3 chunks |
+6 lines, -24 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/file_write_helper_unittest.cc
|
View
|
|
3 chunks |
+19 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fileapi_worker.h
|
View
|
1
2
3
|
3 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/fileapi_worker.cc
|
View
|
1
2
3
|
4 chunks |
+13 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/webkit_file_stream_writer_impl.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/drive/webkit_file_stream_writer_impl.cc
|
View
|
1
2
3
|
5 chunks |
+16 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_chromeos.gypi
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|