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

Issue 54923003: Support for shared invalidator client IDs (Closed)

Created:
7 years, 1 month ago by rlarocque
Modified:
7 years, 1 month ago
Reviewers:
nyquist
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, colinmeek, danielsmyers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Support 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)
rlarocque
Here's the next patch towards a consistent invalidation ID. If there is no registered UniqueIdentificationGenerator ...
7 years, 1 month ago (2013-10-31 21:57:10 UTC) #1
nyquist
https://codereview.chromium.org/54923003/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java File chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java (right): https://codereview.chromium.org/54923003/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java#newcode167 chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java:167: } catch (Exception e) { The declaration doesn't have ...
7 years, 1 month ago (2013-11-01 16:21:01 UTC) #2
nyquist
7 years, 1 month ago (2013-11-01 16:21:01 UTC) #3
rlarocque
PTAL. Feel free to contact me on IM if you want to discuss the testing ...
7 years, 1 month ago (2013-11-01 17:24:21 UTC) #4
nyquist
mostly lg, but can you please write tests for the InvalidationController and InvalidationService that tests ...
7 years, 1 month ago (2013-11-01 21:25:43 UTC) #5
rlarocque
I had been running some tests, but apparently I wasn't running all the relevant ones. ...
7 years, 1 month ago (2013-11-02 00:31:00 UTC) #6
nyquist
You mentioned a new C++ test... I can't seem to find it though. Did you ...
7 years, 1 month ago (2013-11-04 18:56:45 UTC) #7
rlarocque
I've 'git added' the C++ tests and addressed a few of your comments. PTAL. https://codereview.chromium.org/54923003/diff/8/chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java ...
7 years, 1 month ago (2013-11-11 18:55:44 UTC) #8
nyquist
lgtm with one comment about not using the synchronized keyword in the method signature. https://codereview.chromium.org/54923003/diff/8/chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java ...
7 years, 1 month ago (2013-11-11 19:20:39 UTC) #9
rlarocque
https://codereview.chromium.org/54923003/diff/270001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java File chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java (right): https://codereview.chromium.org/54923003/diff/270001/chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java#newcode158 chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java:158: synchronized public byte[] getInvalidatorClientId() { On 2013/11/11 19:20:40, nyquist ...
7 years, 1 month ago (2013-11-11 19:46:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/54923003/340001
7 years, 1 month ago (2013-11-11 19:50:29 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-11 20:34:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/54923003/610001
7 years, 1 month ago (2013-11-11 21:00:47 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=222807
7 years, 1 month ago (2013-11-12 00:14:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/54923003/610001
7 years, 1 month ago (2013-11-12 00:32:24 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=223005
7 years, 1 month ago (2013-11-12 04:49:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/54923003/610001
7 years, 1 month ago (2013-11-12 14:25:12 UTC) #17
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 15:36:32 UTC) #18
Message was sent while issue was closed.
Change committed as 234524

Powered by Google App Engine
This is Rietveld 408576698