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

Issue 10966003: Add LocalFileChangeTracker database to record non-synced dirty files (Closed)

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

Description

Add LocalFileChangeTracker database to record non-synced dirty files BUG=148886 TEST=content_unittests --gtest_filter=\*LocalFileChangeTrackerTest\* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158791

Patch Set 1 #

Total comments: 16

Patch Set 2 : Add serialize and deserialize methods #

Patch Set 3 : Fix #

Total comments: 12

Patch Set 4 : Reflect comments #

Total comments: 8

Patch Set 5 : Reflect comments #

Total comments: 6

Patch Set 6 : Clean up #

Patch Set 7 : Normalize expected file path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -8 lines) Patch
M webkit/fileapi/syncable/local_file_change_tracker.h View 1 2 3 4 4 chunks +11 lines, -0 lines 0 comments Download
M webkit/fileapi/syncable/local_file_change_tracker.cc View 1 2 3 4 5 2 chunks +165 lines, -5 lines 0 comments Download
M webkit/fileapi/syncable/local_file_change_tracker_unittest.cc View 1 2 3 4 5 6 6 chunks +51 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
nhiroki
Can you review this? Thanks!
8 years, 3 months ago (2012-09-20 04:21:09 UTC) #1
kinuko
http://codereview.chromium.org/10966003/diff/1/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/1/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode229 webkit/fileapi/syncable/local_file_change_tracker.cc:229: << from_here.ToString() << " with error: " << status.ToString(); ...
8 years, 3 months ago (2012-09-20 05:09:11 UTC) #2
tzik
http://codereview.chromium.org/10966003/diff/1/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/1/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode203 webkit/fileapi/syncable/local_file_change_tracker.cc:203: if (Repair(path)) can be just return Repair(path); http://codereview.chromium.org/10966003/diff/1/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode215 webkit/fileapi/syncable/local_file_change_tracker.cc:215: ...
8 years, 3 months ago (2012-09-20 05:24:50 UTC) #3
nhiroki
Thanks for reviewing! http://codereview.chromium.org/10966003/diff/1/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/1/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode203 webkit/fileapi/syncable/local_file_change_tracker.cc:203: if (Repair(path)) On 2012/09/20 05:24:50, tzik ...
8 years, 3 months ago (2012-09-20 09:30:33 UTC) #4
nhiroki
Sorry, I found my mistake in patchset2. Now I have no time, so I'll fix ...
8 years, 3 months ago (2012-09-20 09:43:42 UTC) #5
nhiroki
On 2012/09/20 09:43:42, nhiroki wrote: > Sorry, I found my mistake in patchset2. > Now ...
8 years, 3 months ago (2012-09-21 02:29:28 UTC) #6
tzik
Looks good, overall http://codereview.chromium.org/10966003/diff/3002/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/3002/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode241 webkit/fileapi/syncable/local_file_change_tracker.cc:241: db_disabled_ = true; Could you reset ...
8 years, 3 months ago (2012-09-21 04:16:32 UTC) #7
nhiroki
http://codereview.chromium.org/10966003/diff/3002/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/3002/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode241 webkit/fileapi/syncable/local_file_change_tracker.cc:241: db_disabled_ = true; On 2012/09/21 04:16:32, tzik wrote: > ...
8 years, 3 months ago (2012-09-21 06:21:08 UTC) #8
tzik
I see. LGTM
8 years, 3 months ago (2012-09-21 06:32:50 UTC) #9
kinuko
http://codereview.chromium.org/10966003/diff/1007/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/1007/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode175 webkit/fileapi/syncable/local_file_change_tracker.cc:175: return FileSystemURL(GURL(url)); I prefer making this method like: bool ...
8 years, 3 months ago (2012-09-21 08:12:32 UTC) #10
nhiroki
Thank you for reviewing. Can you take another look? Thanks! http://codereview.chromium.org/10966003/diff/1007/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/1007/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode175 ...
8 years, 2 months ago (2012-09-24 07:01:40 UTC) #11
kinuko
lgtm http://codereview.chromium.org/10966003/diff/16001/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/16001/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode52 webkit/fileapi/syncable/local_file_change_tracker.cc:52: base::Time last_reported_time_; Not used? http://codereview.chromium.org/10966003/diff/16001/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode156 webkit/fileapi/syncable/local_file_change_tracker.cc:156: MarkDirtyOnDatabase(url); We ...
8 years, 2 months ago (2012-09-25 04:25:17 UTC) #12
tzik
Still LGTM
8 years, 2 months ago (2012-09-25 05:38:22 UTC) #13
nhiroki
Thanks for your comments! http://codereview.chromium.org/10966003/diff/16001/webkit/fileapi/syncable/local_file_change_tracker.cc File webkit/fileapi/syncable/local_file_change_tracker.cc (right): http://codereview.chromium.org/10966003/diff/16001/webkit/fileapi/syncable/local_file_change_tracker.cc#newcode52 webkit/fileapi/syncable/local_file_change_tracker.cc:52: base::Time last_reported_time_; On 2012/09/25 04:25:17, ...
8 years, 2 months ago (2012-09-25 05:51:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/10966003/19001
8 years, 2 months ago (2012-09-25 05:52:58 UTC) #15
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years, 2 months ago (2012-09-25 09:43:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/10966003/20007
8 years, 2 months ago (2012-09-26 10:40:08 UTC) #17
commit-bot: I haz the power
8 years, 2 months ago (2012-09-26 12:55:33 UTC) #18
Change committed as 158791

Powered by Google App Engine
This is Rietveld 408576698