The SyncService interface exposes around 50 methods, and currently they're listed in no particular order: State queries, modifications, debug-UI-only getters, etc etc are all arbitrarily mixed. This makes the header hard to read.
Some more thoughts:
- There are a bunch of "add 1 to i"-level comments around.
- Conversely, some non-trivial methods are lacking a comment.
- As a slightly larger follow-up, we could consider moving debug-UI-only functionality from SyncService down into ProfileSyncService. This would require updating SyncInternalsMessageHandler to use ProfileSyncService rather than SyncService, which should be trivial.
Comment 1 by treib@chromium.org
, Jul 20