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

Issue 11238054: Add OnSyncEnabled/OnWriteEnabled notification handling to operation runner (Closed)

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

Description

Add OnSyncEnabled/OnWriteEnabled notification handling to operation runner * Slightly changing ownership relationship: now LocalFileSyncContext owns both SyncableFileOperationRunner and LocalFileSyncStatus (previously SyncContext used to own OperationRunner that owns SyncStatus) * Adding OnSyncEnabled, OnWriteEnabled notifications to the LocalFileSyncStatus * Let SyncableFileOperation listen to OnWriteEnabled notification so that it can automatically start write operations (as far as the # of operations is less than the given max) BUG=148897, 154234 TEST=SyncableFileOperationRunnerTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163584

Patch Set 1 : #

Total comments: 4

Patch Set 2 : addressed comments #

Patch Set 3 : added export #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -43 lines) Patch
M webkit/fileapi/syncable/local_file_sync_context.h View 4 chunks +12 lines, -1 line 0 comments Download
M webkit/fileapi/syncable/local_file_sync_context.cc View 3 chunks +17 lines, -2 lines 0 comments Download
M webkit/fileapi/syncable/local_file_sync_status.h View 1 2 4 chunks +15 lines, -0 lines 0 comments Download
M webkit/fileapi/syncable/local_file_sync_status.cc View 3 chunks +14 lines, -1 line 0 comments Download
M webkit/fileapi/syncable/syncable_file_operation_runner.h View 1 3 chunks +29 lines, -12 lines 0 comments Download
M webkit/fileapi/syncable/syncable_file_operation_runner.cc View 1 2 chunks +29 lines, -8 lines 0 comments Download
M webkit/fileapi/syncable/syncable_file_operation_runner_unittest.cc View 1 2 7 chunks +3 lines, -19 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kinuko
Split out from http://codereview.chromium.org/11235027/. This one will be easier to review. PTL thanks
8 years, 1 month ago (2012-10-23 05:22:05 UTC) #1
tzik
lgtm http://codereview.chromium.org/11238054/diff/5001/webkit/fileapi/syncable/syncable_file_operation_runner.h File webkit/fileapi/syncable/syncable_file_operation_runner.h (right): http://codereview.chromium.org/11238054/diff/5001/webkit/fileapi/syncable/syncable_file_operation_runner.h#newcode79 webkit/fileapi/syncable/syncable_file_operation_runner.h:79: size_t num_pending_tasks() const { return pending_tasks_.size(); } Could ...
8 years, 1 month ago (2012-10-23 06:08:20 UTC) #2
kinuko
Thanks! http://codereview.chromium.org/11238054/diff/5001/webkit/fileapi/syncable/syncable_file_operation_runner.h File webkit/fileapi/syncable/syncable_file_operation_runner.h (right): http://codereview.chromium.org/11238054/diff/5001/webkit/fileapi/syncable/syncable_file_operation_runner.h#newcode79 webkit/fileapi/syncable/syncable_file_operation_runner.h:79: size_t num_pending_tasks() const { return pending_tasks_.size(); } On ...
8 years, 1 month ago (2012-10-23 07:54:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/11238054/11003
8 years, 1 month ago (2012-10-23 08:08:01 UTC) #4
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-10-23 08:32:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/11238054/11003
8 years, 1 month ago (2012-10-23 09:07:11 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-10-23 09:38:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/11238054/19
8 years, 1 month ago (2012-10-23 15:07:04 UTC) #8
commit-bot: I haz the power
8 years, 1 month ago (2012-10-23 17:10:55 UTC) #9
Change committed as 163584

Powered by Google App Engine
This is Rietveld 408576698