DescriptionSupport for shared invalidator client IDs
Allow the Java side of the Andorid invalidations implementation to share
its client ID with its associated C++ classes.
The InvalidationController class will prefer to use an ID from a provided
UniqueIdentificationGeneratorFactory. This ID would have the advantage of
persisting across restarts, which is necessary to ensure effective reflection
blocking.
If the UniqueIdentificationGeneratorFactory has not been provided, as may be
the case in tests, the InvalidationController will generate its own temporary
ID. This will effectievely disable reflection blocking, but it's better than
returning a consistent ID (since that would risk blocking notifications that we
actually need). This randomly generated ID is not much different from the
randomly generated ID created by the InvalidationService prior to this CL.
At the time of this writing, the code to set up the
UniqueIDGeneratorFactory is not in place. This will be added in a later
commit. Until then, reflection blocking will remain broken.
BUG=172391
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234524
Patch Set 1 #Patch Set 2 : Update comment #
Total comments: 6
Patch Set 3 : Some review fixes #Patch Set 4 : More and better testing #
Total comments: 7
Patch Set 5 : Add C++ test #Patch Set 6 : Fixes #Patch Set 7 : One more fix #
Total comments: 2
Patch Set 8 : Different locking impl #Patch Set 9 : Fix compile issue #Messages
Total messages: 18 (0 generated)
|