Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Issue 23549038: sync: Add ModelNeutralMutableEntry (Closed)

Created:
7 years, 3 months ago by rlarocque
Modified:
7 years, 2 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Visibility:
Public.

Description

sync: Add ModelNeutralMutableEntry Add a ModelNeutralMutableEntry that exists between Entry and MutableEntry in the hierarchy of syncable::Entry classes. This new class inherits all of Entry's getter methods, so it can has the same ability to read from entries as the current Entry and MutableEntry classes. All the setter methods from MutableEntry that are not model-changing have been moved into ModelNeutralMutableEntry. The non-model-changing setters are those whose mutations do not need to be communicated to the model-specific change processors. Because we know can guarantee all changes made through the ModelNeutralMutabeEntry functions will not need to be relayed to the change processors, it would be safe to skip calling SaveOriginal() in its setter functions. For now, though, we leave these setter functions unmodified. BUG=284672 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=225052

Patch Set 1 #

Patch Set 2 : Rename #

Patch Set 3 : Add missing files #

Total comments: 12

Patch Set 4 : Fixes from review comments #

Total comments: 4

Patch Set 5 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -708 lines) Patch
M sync/sync_core.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M sync/syncable/directory.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A + sync/syncable/model_neutral_mutable_entry.h View 1 2 3 4 4 chunks +33 lines, -58 lines 0 comments Download
A + sync/syncable/model_neutral_mutable_entry.cc View 1 2 18 chunks +41 lines, -255 lines 0 comments Download
M sync/syncable/mutable_entry.h View 1 2 chunks +7 lines, -72 lines 0 comments Download
M sync/syncable/mutable_entry.cc View 1 10 chunks +16 lines, -323 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rlarocque
Please review.
7 years, 3 months ago (2013-09-18 22:28:37 UTC) #1
Nicolas Zea
https://codereview.chromium.org/23549038/diff/5001/sync/syncable/model_neutral_mutable_entry.h File sync/syncable/model_neutral_mutable_entry.h (left): https://codereview.chromium.org/23549038/diff/5001/sync/syncable/model_neutral_mutable_entry.h#oldcode37 sync/syncable/model_neutral_mutable_entry.h:37: MutableEntry(WriteTransaction* trans, CreateNewUpdateItem, const Id& id); do you not ...
7 years, 3 months ago (2013-09-19 00:12:29 UTC) #2
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/23549038/diff/5001/sync/syncable/model_neutral_mutable_entry.h File sync/syncable/model_neutral_mutable_entry.h (left): https://codereview.chromium.org/23549038/diff/5001/sync/syncable/model_neutral_mutable_entry.h#oldcode37 sync/syncable/model_neutral_mutable_entry.h:37: MutableEntry(WriteTransaction* trans, CreateNewUpdateItem, const Id& id); ...
7 years, 3 months ago (2013-09-19 00:40:42 UTC) #3
rlarocque
ping.
7 years, 3 months ago (2013-09-23 17:22:42 UTC) #4
Nicolas Zea
LGTM https://codereview.chromium.org/23549038/diff/10001/sync/syncable/model_neutral_mutable_entry.h File sync/syncable/model_neutral_mutable_entry.h (right): https://codereview.chromium.org/23549038/diff/10001/sync/syncable/model_neutral_mutable_entry.h#newcode42 sync/syncable/model_neutral_mutable_entry.h:42: // to the node. These fields are important ...
7 years, 3 months ago (2013-09-23 20:00:30 UTC) #5
rlarocque
https://codereview.chromium.org/23549038/diff/10001/sync/syncable/model_neutral_mutable_entry.h File sync/syncable/model_neutral_mutable_entry.h (right): https://codereview.chromium.org/23549038/diff/10001/sync/syncable/model_neutral_mutable_entry.h#newcode42 sync/syncable/model_neutral_mutable_entry.h:42: // to the node. These fields are important for ...
7 years, 3 months ago (2013-09-23 21:28:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/23549038/16001
7 years, 3 months ago (2013-09-23 21:38:19 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=201527
7 years, 3 months ago (2013-09-24 02:32:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/23549038/16001
7 years, 2 months ago (2013-09-24 17:16:59 UTC) #9
commit-bot: I haz the power
7 years, 2 months ago (2013-09-24 19:44:16 UTC) #10
Message was sent while issue was closed.
Change committed as 225052

Powered by Google App Engine
This is Rietveld 408576698