Chromium Code Reviews
Description[Extensions] Fix incorrect counting prefs in activity log
The ActivityLog maintains a count of active apps/extensions that are
listening to the API. This is necessary so that events that happen on
startup (potentially before the extension is loaded) are properly
recorded. Unfortunately, there was a bug where this counter was never
properly decremented. Because of this, there are cases where we are
recording activity, but there are no active consumers.
Fix this by separating the concept of cached consumers and seen active
consumers. During startup, we can rely on the cached consumer count, but
once startup is complete, we check whether or not there is actually a
consumer and update the cached count appropriately.
BUG=646853
Committed: https://crrev.com/100d164a4403d22bfa238607ebad71331e5032ad
Cr-Commit-Position: refs/heads/master@{#421870}
Patch Set 1 #Patch Set 2 : testspass #Patch Set 3 : woot #
Total comments: 2
Patch Set 4 : nit #
Messages
Total messages: 25 (18 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||