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

Issue 2276943006: [USS] Move GetAllNodes from backend to controller (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] Move GetAllNodes from backend to controller This check in is a preparation for showing USS debug info in sync-internals page. After this one, will Implement NonBlockingDataTypeController::GetAllNodes(), so sync-internals can show USS sync nodes. BUG=641069 Committed: https://crrev.com/8fd6d2f37cb22680b7b060a5528c9d93de81cc7a Cr-Commit-Position: refs/heads/master@{#415505}

Patch Set 1 #

Total comments: 18

Patch Set 2 : remove task runnner #

Total comments: 6

Patch Set 3 : clean code #

Total comments: 12

Patch Set 4 : fix enabled data types #

Patch Set 5 : git rebase master #

Total comments: 7

Patch Set 6 : update for Max #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -173 lines) Patch
M components/browser_sync/browser/profile_sync_service.cc View 1 2 3 4 5 5 chunks +34 lines, -36 lines 0 comments Download
M components/sync/core/sync_manager.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M components/sync/core/test/fake_sync_manager.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M components/sync/core_impl/sync_manager_impl.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M components/sync/core_impl/sync_manager_impl.cc View 1 2 3 4 1 chunk +0 lines, -17 lines 0 comments Download
M components/sync/core_impl/sync_manager_impl_unittest.cc View 1 2 3 4 1 chunk +0 lines, -17 lines 0 comments Download
M components/sync/core_impl/test/fake_sync_manager.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M components/sync/driver/data_type_controller.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.h View 1 2 3 4 chunks +13 lines, -1 line 0 comments Download
M components/sync/driver/directory_data_type_controller.cc View 1 2 3 3 chunks +24 lines, -2 lines 0 comments Download
M components/sync/driver/fake_data_type_controller.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/sync/driver/frontend_data_type_controller.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/sync/driver/frontend_data_type_controller.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host.h View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.h View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_core.cc View 1 2 3 4 1 chunk +0 lines, -26 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_impl.cc View 1 2 3 4 1 chunk +0 lines, -11 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_mock.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M components/sync/driver/glue/sync_backend_host_mock.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M components/sync/driver/non_blocking_data_type_controller.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/driver/non_blocking_data_type_controller.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M components/sync/driver/non_ui_data_type_controller.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/sync/driver/non_ui_data_type_controller.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M components/sync/driver/ui_data_type_controller.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/sync/driver/ui_data_type_controller.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M components/sync/syncable/directory_unittest.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (41 generated)
Gang Wu
PTAL
4 years, 3 months ago (2016-08-25 22:43:37 UTC) #12
maxbogue
https://codereview.chromium.org/2276943006/diff/40001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/2276943006/diff/40001/components/browser_sync/browser/profile_sync_service.cc#newcode2204 components/browser_sync/browser/profile_sync_service.cc:2204: void OnReceivedNodesForTypes( This should become OnReceivedNodesForType, since now we're ...
4 years, 3 months ago (2016-08-25 23:38:59 UTC) #13
Gang Wu
updated, working on android test failures. https://codereview.chromium.org/2276943006/diff/40001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/2276943006/diff/40001/components/browser_sync/browser/profile_sync_service.cc#newcode2204 components/browser_sync/browser/profile_sync_service.cc:2204: void OnReceivedNodesForTypes( On ...
4 years, 3 months ago (2016-08-26 16:48:05 UTC) #20
skym
https://codereview.chromium.org/2276943006/diff/40001/components/sync/driver/proxy_data_type_controller.cc File components/sync/driver/proxy_data_type_controller.cc (right): https://codereview.chromium.org/2276943006/diff/40001/components/sync/driver/proxy_data_type_controller.cc#newcode81 components/sync/driver/proxy_data_type_controller.cc:81: types_vector.push_back(type()); I know Max suggested to switch to returning ...
4 years, 3 months ago (2016-08-26 18:41:39 UTC) #21
pavely
https://codereview.chromium.org/2276943006/diff/60001/components/browser_sync/browser/profile_sync_service.h File components/browser_sync/browser/profile_sync_service.h (right): https://codereview.chromium.org/2276943006/diff/60001/components/browser_sync/browser/profile_sync_service.h#newcode342 components/browser_sync/browser/profile_sync_service.h:342: void GetAllNodesForTypes( I think you only have/use GetAllNodesForTypes in ...
4 years, 3 months ago (2016-08-26 23:17:09 UTC) #22
Gang Wu
updated base on comment, fix android test failures, working on getting enabled data type. https://codereview.chromium.org/2276943006/diff/40001/components/sync/driver/proxy_data_type_controller.cc ...
4 years, 3 months ago (2016-08-29 20:07:41 UTC) #31
maxbogue
https://codereview.chromium.org/2276943006/diff/80001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/2276943006/diff/80001/components/browser_sync/browser/profile_sync_service.cc#newcode2267 components/browser_sync/browser/profile_sync_service.cc:2267: base::WrapUnique(new base::ListValue())); nit: in this case you could just ...
4 years, 3 months ago (2016-08-29 21:21:17 UTC) #32
Gang Wu
Fix the enabled data type problem. https://codereview.chromium.org/2276943006/diff/80001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/2276943006/diff/80001/components/browser_sync/browser/profile_sync_service.cc#newcode2267 components/browser_sync/browser/profile_sync_service.cc:2267: base::WrapUnique(new base::ListValue())); On ...
4 years, 3 months ago (2016-08-30 20:56:01 UTC) #39
maxbogue
lgtm w/ a few more nits. https://codereview.chromium.org/2276943006/diff/140001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/2276943006/diff/140001/components/browser_sync/browser/profile_sync_service.cc#newcode2239 components/browser_sync/browser/profile_sync_service.cc:2239: // Add these ...
4 years, 3 months ago (2016-08-30 21:47:44 UTC) #42
Gang Wu
Thanks, Max! https://codereview.chromium.org/2276943006/diff/140001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/2276943006/diff/140001/components/browser_sync/browser/profile_sync_service.cc#newcode2270 components/browser_sync/browser/profile_sync_service.cc:2270: } else { On 2016/08/30 21:47:44, maxbogue ...
4 years, 3 months ago (2016-08-30 23:46:06 UTC) #47
pavely
lgtm
4 years, 3 months ago (2016-08-30 23:56:13 UTC) #48
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/2276943006/160001
4 years, 3 months ago (2016-08-31 00:00:51 UTC) #51
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 3 months ago (2016-08-31 00:06:13 UTC) #53
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 00:08:39 UTC) #55
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8fd6d2f37cb22680b7b060a5528c9d93de81cc7a
Cr-Commit-Position: refs/heads/master@{#415505}

Powered by Google App Engine
This is Rietveld 408576698