Reland CHECKs that verify bookmark USS invariants

Relands invariant-checking logic reverted in
https://chromium-review.googlesource.com/c/1378135 after having fixed
the issue with the root node, which may not be tracked if the sync
data was supplied by the USS migrator.

TBR=jkrcal@chromium.org

Bug: 915198
Change-Id: I2e3db80d14d8f4a07bc395e1fec46ff9af6a7b8c
Reviewed-on: https://chromium-review.googlesource.com/c/1378857
Reviewed-by: Mikel Astiz <mastiz@chromium.org>
Commit-Queue: Mikel Astiz <mastiz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#616994}
1 file changed