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

Issue 2666023002: [Sync] Fix USS type status counters. (Closed)

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

Description

[Sync] Fix USS type status counters. It seems that NonBlockingTypeDebugInfoEmitter is actually always invoked when the about-sync page is loaded, not just when the 'Types' tab is opened. So I've removed the 0 values it emitted, since the other status counter mechanism through PSS/DTC is always invoked on about-sync load. However, the above change didn't completely fix the problem. Instead of showing 0 for Autofill, I'd see "undefined". This turns out to be because update/commit counters send the same type of message to the javascript, but lack num entries in the counters map. It worked out just fine for Directory types because they'd always send the status counters after update/commit, but non-blocking types don't have a sync thread mechanism anymore, and so they cannot take this approach. My fix is simply don't update in the javascript when num entries are not defined, so we'll keep the early value from PSS/DTC. BUG=687013 Review-Url: https://codereview.chromium.org/2666023002 Cr-Commit-Position: refs/heads/master@{#447364} Committed: https://chromium.googlesource.com/chromium/src/+/9e27208d9936f21f7554396af03c29c508e3d62e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -15 lines) Patch
M components/sync/driver/resources/about.js View 1 chunk +8 lines, -2 lines 0 comments Download
M components/sync/engine_impl/cycle/non_blocking_type_debug_info_emitter.cc View 2 chunks +4 lines, -13 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (9 generated)
skym
PTAL
3 years, 10 months ago (2017-01-31 04:09:01 UTC) #4
maxbogue
lgtm but please let Gang review as well.
3 years, 10 months ago (2017-01-31 05:33:29 UTC) #8
Gang Wu
lgtm
3 years, 10 months ago (2017-01-31 21:00:24 UTC) #9
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/2666023002/1
3 years, 10 months ago (2017-01-31 23:29:46 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 23:38:39 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9e27208d9936f21f7554396af03c...

Powered by Google App Engine
This is Rietveld 408576698