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

Issue 10956064: Send OnModifyFile Notification when File Write Finishes (Closed)

Created:
8 years, 3 months ago by calvinlo
Modified:
8 years, 2 months ago
Reviewers:
kinuko, tzik
CC:
chromium-reviews, tzik+watch_chromium.org, kinuko+watch, darin-cc_chromium.org
Visibility:
Public.

Description

Send OnModifyFile Notification when File Write completes successfully or fails but something was written. e.g. partial write before failure. BUG=150060 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158784

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added write status inside FileWriteDelegate so onFileModify notifications are only sent when a fileā€¦ #

Total comments: 24

Patch Set 3 : Kinuko and tzik review pass 1 #

Patch Set 4 : Kinuko and tzik review pass 2 (forgot some files) #

Patch Set 5 : Fixed typo from last upload #

Total comments: 4

Patch Set 6 : Kinuko Review #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -43 lines) Patch
M webkit/chromeos/fileapi/remote_file_system_operation.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M webkit/chromeos/fileapi/remote_file_system_operation.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M webkit/fileapi/file_writer_delegate.h View 1 2 2 chunks +16 lines, -2 lines 0 comments Download
M webkit/fileapi/file_writer_delegate.cc View 1 2 4 chunks +14 lines, -5 lines 0 comments Download
M webkit/fileapi/file_writer_delegate_unittest.cc View 1 2 3 4 5 14 chunks +26 lines, -28 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.cc View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M webkit/fileapi/local_file_system_operation_write_unittest.cc View 1 2 3 13 chunks +35 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
calvinlo
Please note the changes to the change_observer()->get_and_reset_modify_file_count() in each of the test. I'm not sure ...
8 years, 3 months ago (2012-09-24 08:26:58 UTC) #1
kinuko
http://codereview.chromium.org/10956064/diff/1/webkit/fileapi/local_file_system_operation.cc File webkit/fileapi/local_file_system_operation.cc (right): http://codereview.chromium.org/10956064/diff/1/webkit/fileapi/local_file_system_operation.cc#newcode693 webkit/fileapi/local_file_system_operation.cc:693: &FileChangeObserver::OnModifyFile, MakeTuple(url)); On the second thought (and on the ...
8 years, 2 months ago (2012-09-25 04:12:26 UTC) #2
calvinlo
As discussed in person, I ended up solving this by changing the value of boolean ...
8 years, 2 months ago (2012-09-25 09:42:14 UTC) #3
kinuko
http://codereview.chromium.org/10956064/diff/6001/webkit/chromeos/fileapi/remote_file_system_operation.h File webkit/chromeos/fileapi/remote_file_system_operation.h (right): http://codereview.chromium.org/10956064/diff/6001/webkit/chromeos/fileapi/remote_file_system_operation.h#newcode107 webkit/chromeos/fileapi/remote_file_system_operation.h:107: ); style-nit: can you format this function like the ...
8 years, 2 months ago (2012-09-25 14:00:49 UTC) #4
tzik
http://codereview.chromium.org/10956064/diff/6001/webkit/fileapi/local_file_system_operation.h File webkit/fileapi/local_file_system_operation.h (right): http://codereview.chromium.org/10956064/diff/6001/webkit/fileapi/local_file_system_operation.h#newcode24 webkit/fileapi/local_file_system_operation.h:24: #include "webkit/quota/quota_manager.h" maybe, quota_manager.h is not needed here.
8 years, 2 months ago (2012-09-26 01:41:11 UTC) #5
calvinlo
http://codereview.chromium.org/10956064/diff/6001/webkit/chromeos/fileapi/remote_file_system_operation.h File webkit/chromeos/fileapi/remote_file_system_operation.h (right): http://codereview.chromium.org/10956064/diff/6001/webkit/chromeos/fileapi/remote_file_system_operation.h#newcode107 webkit/chromeos/fileapi/remote_file_system_operation.h:107: ); On 2012/09/25 14:00:49, kinuko wrote: > style-nit: can ...
8 years, 2 months ago (2012-09-26 05:23:07 UTC) #6
calvinlo
http://codereview.chromium.org/10956064/diff/6001/webkit/chromeos/fileapi/remote_file_system_operation.h File webkit/chromeos/fileapi/remote_file_system_operation.h (right): http://codereview.chromium.org/10956064/diff/6001/webkit/chromeos/fileapi/remote_file_system_operation.h#newcode107 webkit/chromeos/fileapi/remote_file_system_operation.h:107: ); On 2012/09/25 14:00:49, kinuko wrote: > style-nit: can ...
8 years, 2 months ago (2012-09-26 05:23:07 UTC) #7
kinuko
lgtm http://codereview.chromium.org/10956064/diff/11002/webkit/fileapi/file_writer_delegate_unittest.cc File webkit/fileapi/file_writer_delegate_unittest.cc (right): http://codereview.chromium.org/10956064/diff/11002/webkit/fileapi/file_writer_delegate_unittest.cc#newcode38 webkit/fileapi/file_writer_delegate_unittest.cc:38: bool write_status() const { return write_status_; } should ...
8 years, 2 months ago (2012-09-26 06:31:15 UTC) #8
calvinlo
http://codereview.chromium.org/10956064/diff/11002/webkit/fileapi/file_writer_delegate_unittest.cc File webkit/fileapi/file_writer_delegate_unittest.cc (right): http://codereview.chromium.org/10956064/diff/11002/webkit/fileapi/file_writer_delegate_unittest.cc#newcode38 webkit/fileapi/file_writer_delegate_unittest.cc:38: bool write_status() const { return write_status_; } On 2012/09/26 ...
8 years, 2 months ago (2012-09-26 07:43:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/10956064/16002
8 years, 2 months ago (2012-09-26 07:44:39 UTC) #10
commit-bot: I haz the power
Presubmit check for 10956064-16002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-09-26 07:44:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calvinlo@chromium.org/10956064/16002
8 years, 2 months ago (2012-09-26 08:21:35 UTC) #12
commit-bot: I haz the power
8 years, 2 months ago (2012-09-26 11:21:22 UTC) #13
Change committed as 158784

Powered by Google App Engine
This is Rietveld 408576698