[Sync:USS] Fix a crash when getting debugging counters for Bookmarks
BookmarkModelTypeProcessor::GetStatusCountersForDebugging() falsely assumed the initial sync is done by the time this method is called which isn't necessarily the case. The bookmark_tracker_ is only instantiated after initial sync is done. This caused reported crashes. This CL address this properly by not emitting counters in that case, but run the callback directly. Bug: 516866 Change-Id: I2a6d605154694d8ab0ddb2a1e7d1ea4c31ddb620 Reviewed-on: https://chromium-review.googlesource.com/c/1291410 Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#601577}
Showing
Please register or sign in to comment