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

Issue 1413233003: Organizing model type, notification type, root tag and model type string in map. (Closed)

Created:
5 years, 2 months ago by Deepak
Modified:
5 years, 1 month ago
Reviewers:
AKV, Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Organizing model type, notification type, root tag and model type string in map so that all value at one place to avoid clattering of the code and reducing code size and easy maintainability. BUG=545968 Committed: https://crrev.com/fa1f6182af9df39ba618a3214a9f529e23796bb4 Cr-Commit-Position: refs/heads/master@{#357524}

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Changes as per review comments. #

Total comments: 8

Patch Set 4 : #

Patch Set 5 : #

Total comments: 17

Patch Set 6 : Added Test cases. #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Changes as per review comments. #

Patch Set 9 : #

Total comments: 10

Patch Set 10 : Changes as per review comments. #

Total comments: 2

Patch Set 11 : Addressing nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -612 lines) Patch
M sync/internal_api/public/base/model_type.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M sync/syncable/model_type.cc View 1 2 3 4 5 6 7 8 9 7 chunks +137 lines, -612 lines 0 comments Download
M sync/syncable/model_type_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +48 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (6 generated)
Deepak
PTAL
5 years, 2 months ago (2015-10-21 13:28:06 UTC) #5
AKV
Please check inline comments. https://codereview.chromium.org/1413233003/diff/20001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/20001/sync/syncable/model_type.cc#newcode37 sync/syncable/model_type.cc:37: {BOOKMARKS, "BOOKMARK", "bookmarks", "Bookmarks", 2}, ...
5 years, 1 month ago (2015-10-26 10:32:00 UTC) #6
Deepak
PTAL https://codereview.chromium.org/1413233003/diff/20001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/20001/sync/syncable/model_type.cc#newcode37 sync/syncable/model_type.cc:37: {BOOKMARKS, "BOOKMARK", "bookmarks", "Bookmarks", 2}, On 2015/10/26 10:32:00, ...
5 years, 1 month ago (2015-10-26 12:04:46 UTC) #7
AKV
Please check inline comments https://codereview.chromium.org/1413233003/diff/40001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/40001/sync/syncable/model_type.cc#newcode647 sync/syncable/model_type.cc:647: if (model_type_string != "Unspecified" && ...
5 years, 1 month ago (2015-10-27 10:01:33 UTC) #8
Deepak
Changes done. PTAL https://codereview.chromium.org/1413233003/diff/40001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/40001/sync/syncable/model_type.cc#newcode647 sync/syncable/model_type.cc:647: if (model_type_string != "Unspecified" && On ...
5 years, 1 month ago (2015-10-27 12:26:54 UTC) #9
AKV
peer review looks good to me! Thanks!
5 years, 1 month ago (2015-10-27 12:36:10 UTC) #10
Deepak
@zea PTAL
5 years, 1 month ago (2015-10-27 12:37:19 UTC) #12
Nicolas Zea
I like the idea of moving this all into one place, and making it data ...
5 years, 1 month ago (2015-10-27 20:37:20 UTC) #13
Deepak
@Zea Test case added for notification type,root tag,model type string.Test case for Histogram is already ...
5 years, 1 month ago (2015-10-28 07:21:57 UTC) #14
Nicolas Zea
Thanks for adding the tests! Couple more comments. https://codereview.chromium.org/1413233003/diff/80001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/80001/sync/syncable/model_type.cc#newcode597 sync/syncable/model_type.cc:597: for ...
5 years, 1 month ago (2015-10-28 19:54:02 UTC) #15
Deepak
@Zea Changes done as suggested. PTAL https://codereview.chromium.org/1413233003/diff/120001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/120001/sync/syncable/model_type.cc#newcode28 sync/syncable/model_type.cc:28: struct ModelTypeInfo { ...
5 years, 1 month ago (2015-10-29 10:10:22 UTC) #16
Nicolas Zea
Couple more comments https://codereview.chromium.org/1413233003/diff/150001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/150001/sync/syncable/model_type.cc#newcode34 sync/syncable/model_type.cc:34: // of these values should ever ...
5 years, 1 month ago (2015-10-29 22:50:43 UTC) #17
Deepak
PTAL https://codereview.chromium.org/1413233003/diff/150001/sync/syncable/model_type.cc File sync/syncable/model_type.cc (right): https://codereview.chromium.org/1413233003/diff/150001/sync/syncable/model_type.cc#newcode34 sync/syncable/model_type.cc:34: // of these values should ever be modified, ...
5 years, 1 month ago (2015-10-30 05:27:34 UTC) #18
Nicolas Zea
LG, only thing missing I think is that, given the specifics field number are part ...
5 years, 1 month ago (2015-10-30 22:06:48 UTC) #19
Deepak
@Zea Thanks for review. Test case for "specifics field number" are already present and working ...
5 years, 1 month ago (2015-10-31 07:37:05 UTC) #20
Deepak
@Zea Thanks for review. Test cases for "specifics field number" TEST_F(ModelTypeTest, ModelTypeToFromSpecificsFieldNumber) TEST_F(ModelTypeTest, ModelTypeOfInvalidSpecificsFieldNumber) is ...
5 years, 1 month ago (2015-10-31 07:39:11 UTC) #21
Nicolas Zea
Ah, you're right. LGTM then, and thanks!
5 years, 1 month ago (2015-11-02 17:52:40 UTC) #22
Deepak
On 2015/11/02 17:52:40, Nicolas Zea wrote: > Ah, you're right. LGTM then, and thanks! Thank ...
5 years, 1 month ago (2015-11-03 02:50:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413233003/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413233003/190001
5 years, 1 month ago (2015-11-03 02:51:30 UTC) #25
commit-bot: I haz the power
Committed patchset #11 (id:190001)
5 years, 1 month ago (2015-11-03 03:34:46 UTC) #26
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 03:35:40 UTC) #27
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/fa1f6182af9df39ba618a3214a9f529e23796bb4
Cr-Commit-Position: refs/heads/master@{#357524}

Powered by Google App Engine
This is Rietveld 408576698