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

Issue 1830983002: Implement InstanceIDAndroid using InstanceIDWithSubtype.java (Closed)

Created:
4 years, 9 months ago by johnme
Modified:
4 years, 8 months ago
CC:
chromium-reviews, johnme+watch_chromium.org, jbudorick+watch_chromium.org, zea+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@iid1subtype
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement InstanceIDAndroid using InstanceIDWithSubtype.java Replaces the previous stub implementation with a fully functional implementation backed by InstanceIDWithSubtype.java. Part of a series of patches: 1. https://codereview.chromium.org/1832833002 adds InstanceIDWithSubtype 2. this patch 3. https://codereview.chromium.org/1829023002 adds fake and test 4. https://codereview.chromium.org/1854093002 enables InstanceID by default 5. https://codereview.chromium.org/1851423003 switches Push to InstanceIDs BUG=589461 Committed: https://crrev.com/2f8daf9d61b0bd6260dda858f852b258e03341f4 Cr-Commit-Position: refs/heads/master@{#387646}

Patch Set 1 #

Patch Set 2 : Remove incorrect DCHECK #

Patch Set 3 : Rebase #

Total comments: 34

Patch Set 4 : Address most review comments, except spliting off JNI #

Total comments: 4

Patch Set 5 : Split out JNI bindings to InstanceIDBridge wrapper class #

Patch Set 6 : Improve comments #

Total comments: 8

Patch Set 7 : Address peter's nits #

Patch Set 8 : Add gyp dep on google_play_services_javalib #

Patch Set 9 : Make mNativeInstanceIDAndroid non-final #

Unified diffs Side-by-side diffs Delta from patch set Stats (+449 lines, -54 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/gcm_driver.gypi View 1 2 3 4 5 6 7 4 chunks +31 lines, -2 lines 0 comments Download
M components/gcm_driver/android/BUILD.gn View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M components/gcm_driver/android/component_jni_registrar.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_android.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_android.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/gcm_driver/instance_id/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
A components/gcm_driver/instance_id/android/BUILD.gn View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A components/gcm_driver/instance_id/android/component_jni_registrar.h View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A components/gcm_driver/instance_id/android/component_jni_registrar.cc View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java View 1 2 3 4 5 6 7 8 1 chunk +146 lines, -0 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id.h View 1 2 chunks +2 lines, -8 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id.cc View 1 1 chunk +2 lines, -7 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id_android.h View 1 2 3 3 chunks +32 lines, -2 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id_android.cc View 1 2 3 4 5 6 1 chunk +138 lines, -12 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id_driver.cc View 1 1 chunk +0 lines, -7 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id_impl.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/gcm_driver/instance_id/instance_id_impl.cc View 1 5 chunks +12 lines, -11 lines 0 comments Download
M tools/android/eclipse/.classpath View 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 33 (14 generated)
johnme
4 years, 9 months ago (2016-03-24 19:44:31 UTC) #2
johnme
4 years, 8 months ago (2016-04-05 19:10:54 UTC) #5
jianli
lgtm https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/instance_id.h File components/gcm_driver/instance_id/instance_id.h (right): https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/instance_id.h#newcode60 components/gcm_driver/instance_id/instance_id.h:60: // Must outlive this class. On Android, this ...
4 years, 8 months ago (2016-04-08 23:20:00 UTC) #6
Peter Beverloo
https://codereview.chromium.org/1830983002/diff/40001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1830983002/diff/40001/chrome/browser/BUILD.gn#newcode766 chrome/browser/BUILD.gn:766: "//components/gcm_driver/instance_id", Why is this necessary? The deps array defined ...
4 years, 8 months ago (2016-04-11 14:05:32 UTC) #8
Peter Beverloo
https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java File components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java (right): https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java#newcode79 components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java:79: return super.getId(); Both getId() and getCreationTime() may hit SharedPreferences ...
4 years, 8 months ago (2016-04-11 14:28:05 UTC) #9
johnme
Addressed most review comments, except splitting off the JNI parts of InstanceIDWithSubtype to a separate ...
4 years, 8 months ago (2016-04-13 11:42:12 UTC) #10
Peter Beverloo
https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java File components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java (right): https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java#newcode101 components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java:101: return ""; On 2016/04/13 11:42:12, johnme wrote: > On ...
4 years, 8 months ago (2016-04-13 13:21:59 UTC) #11
johnme
Addressed remaining review comments - thanks! https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java File components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java (right): https://codereview.chromium.org/1830983002/diff/40001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java#newcode24 components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDWithSubtype.java:24: @JNINamespace("instance_id") On 2016/04/11 ...
4 years, 8 months ago (2016-04-13 18:46:51 UTC) #12
Peter Beverloo
lgtm % removing getInstance() from the bridge https://codereview.chromium.org/1830983002/diff/100001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java File components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java (right): https://codereview.chromium.org/1830983002/diff/100001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java#newcode41 components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java:41: InstanceID instanceID ...
4 years, 8 months ago (2016-04-14 14:30:48 UTC) #13
johnme
Addressed nits - thanks! https://codereview.chromium.org/1830983002/diff/100001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java File components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java (right): https://codereview.chromium.org/1830983002/diff/100001/components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java#newcode41 components/gcm_driver/instance_id/android/java/src/org/chromium/components/gcm_driver/instance_id/InstanceIDBridge.java:41: InstanceID instanceID = TextUtils.isEmpty(subtype) On ...
4 years, 8 months ago (2016-04-14 18:00:15 UTC) #14
johnme
thestig@chromium.org: Please review changes in chrome/ Thanks!
4 years, 8 months ago (2016-04-14 18:10:09 UTC) #16
Lei Zhang
On 2016/04/14 18:10:09, johnme wrote: > mailto:thestig@chromium.org: Please review changes in chrome/ > Thanks! chrome/ ...
4 years, 8 months ago (2016-04-14 19:58:51 UTC) #17
Peter Beverloo
still lgtm One thought regarding making the constructor asynchronous: we can avoid a whole bunch ...
4 years, 8 months ago (2016-04-14 23:31:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830983002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830983002/120001
4 years, 8 months ago (2016-04-15 11:56:50 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/51047)
4 years, 8 months ago (2016-04-15 12:12:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830983002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830983002/140001
4 years, 8 months ago (2016-04-15 17:04:01 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830983002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830983002/160001
4 years, 8 months ago (2016-04-15 17:12:14 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 8 months ago (2016-04-15 18:17:58 UTC) #31
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 18:19:19 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/2f8daf9d61b0bd6260dda858f852b258e03341f4
Cr-Commit-Position: refs/heads/master@{#387646}

Powered by Google App Engine
This is Rietveld 408576698