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

Issue 10964057: sync: Refactor update application (Closed)

Created:
8 years, 3 months ago by rlarocque
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin, tim (not reviewing)
Visibility:
Public.

Description

sync: Refactor update application This is a refactoring patch. It removes an unnecessary ConflictResolver parameter from a few helper functions and rewrites the update application logic. This patch is part of a series. I expect that future patches will be easier to implement if an applicator can be reused, and the iterator members make it difficult to do so with the current design. BUG=147681 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159186

Patch Set 1 #

Patch Set 2 : Fix an include #

Total comments: 7

Patch Set 3 : Better temp vector handling #

Total comments: 5

Patch Set 4 : Modify comments and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -115 lines) Patch
M sync/engine/apply_updates_command.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M sync/engine/syncer_util.h View 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/syncer_util.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/update_applicator.h View 1 2 3 chunks +10 lines, -24 lines 0 comments Download
M sync/engine/update_applicator.cc View 1 2 3 3 chunks +75 lines, -86 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
rlarocque
Fred, the git logs tell me you were the last one to make meaningful changes ...
8 years, 2 months ago (2012-09-25 17:37:45 UTC) #1
akalin
this looks good, although I don't think I'm super-familiar with this logic. may be worth ...
8 years, 2 months ago (2012-09-25 22:00:55 UTC) #2
rlarocque
http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc File sync/engine/update_applicator.cc (right): http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc#newcode92 sync/engine/update_applicator.cc:92: to_apply = to_reapply; On 2012/09/25 22:00:55, akalin wrote: > ...
8 years, 2 months ago (2012-09-25 22:16:46 UTC) #3
akalin
http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc File sync/engine/update_applicator.cc (right): http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc#newcode92 sync/engine/update_applicator.cc:92: to_apply = to_reapply; On 2012/09/25 22:16:46, rlarocque wrote: > ...
8 years, 2 months ago (2012-09-25 22:22:24 UTC) #4
rlarocque
On 2012/09/25 22:22:24, akalin wrote: > http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc > File sync/engine/update_applicator.cc (right): > > http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc#newcode92 > ...
8 years, 2 months ago (2012-09-26 18:45:58 UTC) #5
rlarocque
+Tim as an expert on how the code currently works. Please review.
8 years, 2 months ago (2012-09-26 18:46:37 UTC) #6
tim (not reviewing)
http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc File sync/engine/update_applicator.cc (right): http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc#newcode87 sync/engine/update_applicator.cc:87: break; On 2012/09/25 17:37:45, rlarocque wrote: > I don't ...
8 years, 2 months ago (2012-09-26 21:13:14 UTC) #7
rlarocque
http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc File sync/engine/update_applicator.cc (right): http://codereview.chromium.org/10964057/diff/7001/sync/engine/update_applicator.cc#newcode87 sync/engine/update_applicator.cc:87: break; On 2012/09/26 21:13:14, timsteele wrote: > On 2012/09/25 ...
8 years, 2 months ago (2012-09-26 21:32:29 UTC) #8
tim (not reviewing)
Ah, I missed that. Makes sense now. I wish we didn't have that SkipUpdate logic ...
8 years, 2 months ago (2012-09-26 21:56:25 UTC) #9
tim (not reviewing)
http://codereview.chromium.org/10964057/diff/16003/sync/engine/update_applicator.cc File sync/engine/update_applicator.cc (right): http://codereview.chromium.org/10964057/diff/16003/sync/engine/update_applicator.cc#newcode78 sync/engine/update_applicator.cc:78: to_reapply.push_back(*i); On 2012/09/26 21:56:25, timsteele wrote: > Add a ...
8 years, 2 months ago (2012-09-26 21:58:26 UTC) #10
rlarocque
http://codereview.chromium.org/10964057/diff/16003/sync/engine/update_applicator.cc File sync/engine/update_applicator.cc (right): http://codereview.chromium.org/10964057/diff/16003/sync/engine/update_applicator.cc#newcode87 sync/engine/update_applicator.cc:87: // We made no progress. Must be stubborn hierarchy ...
8 years, 2 months ago (2012-09-26 22:24:32 UTC) #11
tim (not reviewing)
LGTM (though see my earlier nit) http://codereview.chromium.org/10964057/diff/16003/sync/engine/update_applicator.cc File sync/engine/update_applicator.cc (right): http://codereview.chromium.org/10964057/diff/16003/sync/engine/update_applicator.cc#newcode54 sync/engine/update_applicator.cc:54: for (UpdateIterator i ...
8 years, 2 months ago (2012-09-27 15:04:30 UTC) #12
rlarocque
I made some minor adjustments to improve readability. Functionality remains unchanged. Unless there are any ...
8 years, 2 months ago (2012-09-27 18:48:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/10964057/20001
8 years, 2 months ago (2012-09-27 22:40:45 UTC) #14
commit-bot: I haz the power
8 years, 2 months ago (2012-09-28 03:07:34 UTC) #15
Change committed as 159186

Powered by Google App Engine
This is Rietveld 408576698