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

Issue 1691013002: [Sync] USS: Implement SimpleMetadataChangeList. (Closed)

Created:
4 years, 10 months ago by maxbogue
Modified:
4 years, 10 months ago
Reviewers:
Gang Wu, skym, *pavely
CC:
chromium-reviews, tim+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@smtp3
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] USS: Implement SimpleMetadataChangeList. BUG= Committed: https://crrev.com/8e0e9fe76dd49a8aa6d2db410e485a4265cc0d22 Cr-Commit-Position: refs/heads/master@{#375978}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Use nifty initializer syntax. #

Patch Set 3 : Even more init syntax. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -8 lines) Patch
M sync/internal_api/public/simple_metadata_change_list.h View 3 chunks +27 lines, -1 line 1 comment Download
M sync/internal_api/public/simple_metadata_change_list.cc View 1 2 1 chunk +21 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
maxbogue
Sky, here's what I have so far. As I said, I'm not sure whether this ...
4 years, 10 months ago (2016-02-11 17:33:13 UTC) #2
skym
On 2016/02/11 17:33:13, maxbogue wrote: > Sky, here's what I have so far. As I ...
4 years, 10 months ago (2016-02-11 17:45:55 UTC) #3
maxbogue
Pavel, PTAL as well. +cc Gang I think after this someone (Sky?) should split the ...
4 years, 10 months ago (2016-02-12 18:05:17 UTC) #6
maxbogue
https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.h File sync/internal_api/public/simple_metadata_change_list.h (right): https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.h#newcode20 sync/internal_api/public/simple_metadata_change_list.h:20: // A MetadataChangeList implementation that is meant to be ...
4 years, 10 months ago (2016-02-12 18:06:58 UTC) #7
Gang Wu
https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc File sync/internal_api/public/simple_metadata_change_list.cc (right): https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc#newcode43 sync/internal_api/public/simple_metadata_change_list.cc:43: return state_change_.get() != nullptr; When state_change_->type == CLEAR(set at ...
4 years, 10 months ago (2016-02-12 18:36:08 UTC) #8
maxbogue
https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc File sync/internal_api/public/simple_metadata_change_list.cc (right): https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc#newcode43 sync/internal_api/public/simple_metadata_change_list.cc:43: return state_change_.get() != nullptr; On 2016/02/12 18:36:08, Gang Wu ...
4 years, 10 months ago (2016-02-12 19:12:45 UTC) #9
Gang Wu
lgtm
4 years, 10 months ago (2016-02-12 19:29:35 UTC) #10
pavely
lgtm % comments https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc File sync/internal_api/public/simple_metadata_change_list.cc (right): https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc#newcode15 sync/internal_api/public/simple_metadata_change_list.cc:15: state_change_.reset(new DataTypeStateChange()); I think you can ...
4 years, 10 months ago (2016-02-17 00:56:41 UTC) #11
maxbogue
https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc File sync/internal_api/public/simple_metadata_change_list.cc (right): https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc#newcode15 sync/internal_api/public/simple_metadata_change_list.cc:15: state_change_.reset(new DataTypeStateChange()); On 2016/02/17 00:56:40, pavely wrote: > I ...
4 years, 10 months ago (2016-02-17 19:31:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691013002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691013002/40001
4 years, 10 months ago (2016-02-17 19:34:41 UTC) #15
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No L-G-T-M from ...
4 years, 10 months ago (2016-02-17 19:34:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1691013002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1691013002/40001
4 years, 10 months ago (2016-02-17 20:04:43 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-17 21:08:39 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8e0e9fe76dd49a8aa6d2db410e485a4265cc0d22 Cr-Commit-Position: refs/heads/master@{#375978}
4 years, 10 months ago (2016-02-17 21:10:19 UTC) #25
skym
I guess I'm a little bit late at this point. https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc File sync/internal_api/public/simple_metadata_change_list.cc (right): https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/simple_metadata_change_list.cc#newcode15 ...
4 years, 10 months ago (2016-02-18 16:11:10 UTC) #26
skym
4 years, 10 months ago (2016-02-18 18:25:07 UTC) #27
Message was sent while issue was closed.
I was wrong!

https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/si...
File sync/internal_api/public/simple_metadata_change_list.cc (right):

https://codereview.chromium.org/1691013002/diff/1/sync/internal_api/public/si...
sync/internal_api/public/simple_metadata_change_list.cc:15:
state_change_.reset(new DataTypeStateChange());
On 2016/02/18 16:11:10, skym wrote:
> On 2016/02/17 00:56:40, pavely wrote:
> > I think you can use (new DataTypeStateChange{UPDATE, data_type_state}) here.
> 
> ..This is uniform initialization syntax right? Currently banned.
> 
> http://chromium-cpp.appspot.com/
> 
> > 	Dangerous without library support, see thread. Reevaulate once we have
C++11
> library support.
> 
>
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/GF96FshwHLw

As Max pointed out to me, uniform initialization syntax is applying this style
to classes, but this is a struct. Initializing structs this way has been a thing
for a very long time. So, disregard my earlier concerns.

Powered by Google App Engine
This is Rietveld 408576698