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

Issue 2319973003: [USS] Implement SharedModelTypeProcessor::GetAllNodes for USS (Closed)

Created:
4 years, 3 months ago by Gang Wu
Modified:
4 years, 3 months ago
Reviewers:
maxbogue, skym, pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[USS] Implement SharedModelTypeProcessor::GetAllNodes for USS mplement SharedModelTypeProcessor::GetAllNodes for USS, so "Sync Node Browser" tab in chrome://sync-internals/ will show USS data. BTW, modelTypeWorker already ignore the root folder from server. BUG=645303 Committed: https://crrev.com/85949830038a3b8cb2f34d6cd92801c5c4b921f8 Cr-Commit-Position: refs/heads/master@{#418735}

Patch Set 1 : add comments #

Total comments: 46

Patch Set 2 : update base on comments #

Total comments: 2

Patch Set 3 : update to MakeUnique<> #

Patch Set 4 : change structure of the info a little bit #

Total comments: 6

Patch Set 5 : add blank #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -3 lines) Patch
M components/sync/api/entity_data.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M components/sync/api/entity_data.cc View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M components/sync/api/model_type_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/core/shared_model_type_processor.h View 1 2 chunks +18 lines, -0 lines 0 comments Download
M components/sync/core/shared_model_type_processor.cc View 1 2 3 3 chunks +54 lines, -0 lines 0 comments Download
M components/sync/driver/non_blocking_data_type_controller.cc View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M components/sync/protocol/proto_value_conversions.h View 2 chunks +4 lines, -0 lines 0 comments Download
M components/sync/protocol/proto_value_conversions.cc View 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (40 generated)
Gang Wu
PTAL BTW:The trybot falure is trybot issue.
4 years, 3 months ago (2016-09-09 00:10:03 UTC) #25
skym
https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc File components/sync/api/entity_data.cc (right): https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc#newcode17 components/sync/api/entity_data.cc:17: namespace { I don't think namespaces affect macros https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc#newcode18 ...
4 years, 3 months ago (2016-09-12 16:40:39 UTC) #30
maxbogue
https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc File components/sync/api/entity_data.cc (right): https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc#newcode19 components/sync/api/entity_data.cc:19: dict->SetString(base::ToUpperASCII(#name), value); On 2016/09/12 16:40:38, skym wrote: > What ...
4 years, 3 months ago (2016-09-12 17:44:26 UTC) #31
pavely
https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc File components/sync/api/entity_data.cc (right): https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc#newcode18 components/sync/api/entity_data.cc:18: #define ADD_TO_DICT(dict, name, value) \ When you use one-off ...
4 years, 3 months ago (2016-09-12 20:43:04 UTC) #32
Gang Wu
updated, PTAL https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc File components/sync/api/entity_data.cc (right): https://codereview.chromium.org/2319973003/diff/60001/components/sync/api/entity_data.cc#newcode17 components/sync/api/entity_data.cc:17: namespace { On 2016/09/12 16:40:38, skym wrote: ...
4 years, 3 months ago (2016-09-12 22:38:04 UTC) #35
skym
https://codereview.chromium.org/2319973003/diff/60001/components/sync/core/shared_model_type_processor.cc File components/sync/core/shared_model_type_processor.cc (right): https://codereview.chromium.org/2319973003/diff/60001/components/sync/core/shared_model_type_processor.cc#newcode735 components/sync/core/shared_model_type_processor.cc:735: node->MergeDictionary(metadata.get()); On 2016/09/12 22:38:03, Gang Wu wrote: > On ...
4 years, 3 months ago (2016-09-13 16:45:17 UTC) #38
Gang Wu
I changed info from { "CLIENT_TAG_HASH": "", "CREATION_TIME": "Wednesday, December 31, 1969 at 4:00:00 PM", ...
4 years, 3 months ago (2016-09-13 18:45:02 UTC) #39
pavely
lgtm https://codereview.chromium.org/2319973003/diff/120001/components/sync/api/entity_data.cc File components/sync/api/entity_data.cc (right): https://codereview.chromium.org/2319973003/diff/120001/components/sync/api/entity_data.cc#newcode18 components/sync/api/entity_data.cc:18: namespace { nit: new line after "namespace syncer_v2 ...
4 years, 3 months ago (2016-09-14 17:15:30 UTC) #40
maxbogue
lgtm; I left a comment about the macro but at this point it's just my ...
4 years, 3 months ago (2016-09-14 17:58:02 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319973003/140001
4 years, 3 months ago (2016-09-15 00:45:17 UTC) #48
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 3 months ago (2016-09-15 00:57:01 UTC) #50
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/85949830038a3b8cb2f34d6cd92801c5c4b921f8 Cr-Commit-Position: refs/heads/master@{#418735}
4 years, 3 months ago (2016-09-15 00:58:33 UTC) #52
Gang Wu
4 years, 3 months ago (2016-09-15 17:12:47 UTC) #53
Message was sent while issue was closed.
https://codereview.chromium.org/2319973003/diff/120001/components/sync/api/en...
File components/sync/api/entity_data.cc (right):

https://codereview.chromium.org/2319973003/diff/120001/components/sync/api/en...
components/sync/api/entity_data.cc:18: namespace {
On 2016/09/14 17:15:30, pavely wrote:
> nit: new line after "namespace syncer_v2 {" and before "}  // namespace"

Done.

https://codereview.chromium.org/2319973003/diff/120001/components/sync/api/en...
components/sync/api/entity_data.cc:18: namespace {
On 2016/09/14 17:58:02, maxbogue wrote:
> On 2016/09/14 17:15:30, pavely wrote:
> > nit: new line after "namespace syncer_v2 {" and before "}  // namespace"
> 
> Since there's already a newline after namespace syncer_v2, I assume pavel
means
> after "namespace {"

Done.

https://codereview.chromium.org/2319973003/diff/120001/components/sync/api/en...
components/sync/api/entity_data.cc:48: #define ADD_TO_DICT(dict, value,
transform) \
On 2016/09/14 17:58:02, maxbogue wrote:
> Despite this being how proto_value_conversions does it, I still think it would
> be more readable without the macro.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698