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

Issue 1486043002: [webnfc] Implement push method for Android nfc mojo service. (Closed)

Created:
5 years ago by shalamov
Modified:
4 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, tsepez (do not use)
Base URL:
https://chromium.googlesource.com/chromium/src.git@step_6_add_mojo_service_CL
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[webnfc] Implement push method for Android nfc mojo service. Initial implementation of Android NFC mojo service that is used by blink nfc module. Follow-up patches will add support for nfc.watch / nfc.cancelWatch methods. BUG=520391 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/3466b6197a8071043533c7adde2b303438ff565d Cr-Commit-Position: refs/heads/master@{#413108}

Patch Set 1 #

Patch Set 2 : Rebased to master. Removed files that are not required. #

Patch Set 3 : Make InvalidMessageException static. #

Total comments: 5

Patch Set 4 : Fixes for Kenneth's comments. #

Patch Set 5 : Rebased. #

Patch Set 6 : Rebased. #

Total comments: 30

Patch Set 7 : Fixes for review comments. #

Total comments: 23

Patch Set 8 : Rebased. #

Patch Set 9 : Fixes for review comments. #

Total comments: 2

Patch Set 10 : Avoid caching Activity. #

Total comments: 2

Patch Set 11 : Introduce WindowAndroidProvider / Observer to track window changes. #

Patch Set 12 : Rebased to master. #

Total comments: 19

Patch Set 13 : Fixes for Reilly's comments. #

Patch Set 14 : Rebased to master. #

Total comments: 7

Patch Set 15 : Rebased to master. #

Patch Set 16 : Added more comments to mojom. #

Total comments: 1

Patch Set 17 : Fix mojom field names according to naming conventions. #

Patch Set 18 : Move WindowAndroidChangedObserver to other observers in content layer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+908 lines, -31 lines) Patch
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/browser/mojo/interface_registrar_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/mojo/interface_registrar_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -2 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +21 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/InterfaceRegistrar.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +57 lines, -1 line 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/WindowAndroidChangedObserver.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +18 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/WindowAndroidProvider.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +28 lines, -0 lines 0 comments Download
A device/nfc/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
A device/nfc/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +22 lines, -0 lines 0 comments Download
A device/nfc/android/java/src/org/chromium/device/nfc/InvalidNfcMessageException.java View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
A device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +426 lines, -0 lines 0 comments Download
A device/nfc/android/java/src/org/chromium/device/nfc/NfcTagHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +130 lines, -0 lines 0 comments Download
A device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java View 1 2 3 4 5 6 7 8 1 chunk +95 lines, -0 lines 0 comments Download
A device/nfc/android/java/src/org/chromium/device/nfc/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M device/nfc/nfc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +23 lines, -0 lines 0 comments Download
M device/nfc/nfc.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +38 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/nfc/NFC.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +13 lines, -13 lines 0 comments Download

Messages

Total messages: 84 (45 generated)
shalamov
Please take a look. Blink side implementation: https://crrev.com/1708543002
4 years, 8 months ago (2016-04-18 04:58:14 UTC) #8
kenneth.r.christiansen
lgtm but you want someone actively working on Android to review this https://codereview.chromium.org/1486043002/diff/120001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java ...
4 years, 8 months ago (2016-04-18 16:00:30 UTC) #9
shalamov
https://codereview.chromium.org/1486043002/diff/120001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/120001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode227 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:227: if (mReaderCallbackHandler == null) { On 2016/04/18 16:00:30, kenneth.r.christiansen ...
4 years, 8 months ago (2016-04-19 12:17:14 UTC) #11
Tom Sepez
Looks good, deferring to android experts.
4 years, 8 months ago (2016-04-20 17:11:53 UTC) #14
shalamov
Added content and android owners. Could you please take a look?
4 years, 8 months ago (2016-04-25 14:36:46 UTC) #17
ncarter (slow)
https://codereview.chromium.org/1486043002/diff/180001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1486043002/diff/180001/content/browser/frame_host/render_frame_host_impl.cc#newcode1940 content/browser/frame_host/render_frame_host_impl.cc:1940: #if !defined(OS_ANDROID) Please add a comment: // On android, ...
4 years, 8 months ago (2016-04-25 20:03:14 UTC) #20
timvolodine
some minor comments from my scan of the patch, thanks! https://codereview.chromium.org/1486043002/diff/180001/device/nfc/android/BUILD.gn File device/nfc/android/BUILD.gn (right): https://codereview.chromium.org/1486043002/diff/180001/device/nfc/android/BUILD.gn#newcode1 ...
4 years, 8 months ago (2016-04-26 14:58:27 UTC) #21
shalamov
https://codereview.chromium.org/1486043002/diff/180001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1486043002/diff/180001/content/browser/frame_host/render_frame_host_impl.cc#newcode1940 content/browser/frame_host/render_frame_host_impl.cc:1940: #if !defined(OS_ANDROID) On 2016/04/25 20:03:14, ncarter wrote: > Please ...
4 years, 8 months ago (2016-04-26 21:56:53 UTC) #22
ncarter (slow)
lgtm
4 years, 7 months ago (2016-04-27 22:15:26 UTC) #23
timvolodine
https://codereview.chromium.org/1486043002/diff/180001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/180001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode347 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:347: if (record.mediaType.endsWith(CHARSET_UTF16)) return "UTF-16LE"; On 2016/04/26 21:56:53, shalamov wrote: ...
4 years, 7 months ago (2016-04-28 17:06:34 UTC) #24
Ted C
https://codereview.chromium.org/1486043002/diff/200001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/200001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode70 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:70: * Context that is pasesed to NFC mojo service. ...
4 years, 7 months ago (2016-04-28 17:27:22 UTC) #25
shalamov
Thank you for checking CL Ted. I’m fixing issues that you and @timvolodine have raised, ...
4 years, 7 months ago (2016-05-02 13:24:33 UTC) #26
shalamov
> > Also in general, how does this NFC support play with the Chrome app's ...
4 years, 7 months ago (2016-05-04 08:13:09 UTC) #27
Ted C
On 2016/05/02 13:24:33, shalamov wrote: > Thank you for checking CL Ted. > I’m fixing ...
4 years, 7 months ago (2016-05-10 23:37:10 UTC) #28
shalamov
Fixed review issues. Also, I've split implementation into separate files, since next patches (e.g. https://crrev.com/1765533004/) ...
4 years, 7 months ago (2016-05-11 14:09:58 UTC) #30
Ted C
+yusufo for general tab reparenting conversations https://codereview.chromium.org/1486043002/diff/260001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/260001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode56 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:56: private final Activity ...
4 years, 7 months ago (2016-05-12 18:23:21 UTC) #32
Yusuf
https://codereview.chromium.org/1486043002/diff/260001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/260001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode56 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:56: private final Activity mActivity; On 2016/05/12 18:23:20, Ted C ...
4 years, 7 months ago (2016-05-12 22:06:26 UTC) #33
shalamov
On 2016/05/12 18:23:21, Ted C wrote: > The main method that causes problem is: > ...
4 years, 7 months ago (2016-05-13 13:50:15 UTC) #34
Ted C
https://codereview.chromium.org/1486043002/diff/280001/content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java File content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java (right): https://codereview.chromium.org/1486043002/diff/280001/content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java#newcode71 content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java:71: return new NfcImpl(mContext, new Callable<Activity>() { to avoid the ...
4 years, 7 months ago (2016-05-13 22:04:08 UTC) #35
shalamov
https://codereview.chromium.org/1486043002/diff/280001/content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java File content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java (right): https://codereview.chromium.org/1486043002/diff/280001/content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java#newcode71 content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java:71: return new NfcImpl(mContext, new Callable<Activity>() { On 2016/05/13 22:04:08, ...
4 years, 7 months ago (2016-05-17 12:30:33 UTC) #37
Ted C
On 2016/05/17 12:30:33, shalamov wrote: > https://codereview.chromium.org/1486043002/diff/280001/content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java > File > content/public/android/java/src/org/chromium/content/browser/ServiceRegistrar.java > (right): > > ...
4 years, 7 months ago (2016-05-17 16:21:02 UTC) #38
shalamov
Reilly, could you please check additions to device/nfc/*
4 years, 5 months ago (2016-06-30 12:38:22 UTC) #40
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1486043002/diff/320001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/320001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode55 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:55: * Can be Updated when activity associated with web ...
4 years, 5 months ago (2016-07-01 20:51:45 UTC) #41
shalamov
https://codereview.chromium.org/1486043002/diff/320001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/320001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode55 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:55: * Can be Updated when activity associated with web ...
4 years, 5 months ago (2016-07-04 10:08:16 UTC) #42
Reilly Grant (use Gerrit)
lgtm https://codereview.chromium.org/1486043002/diff/320001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java (right): https://codereview.chromium.org/1486043002/diff/320001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode89 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:89: if (mNfcManager != null) { On 2016/07/04 at ...
4 years, 5 months ago (2016-07-06 20:01:02 UTC) #43
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/1486043002/360001
4 years, 5 months ago (2016-07-07 11:30:16 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/213523)
4 years, 5 months ago (2016-07-07 11:37:41 UTC) #48
shalamov
dcheng, could you please take a look at device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java
4 years, 5 months ago (2016-07-07 12:13:51 UTC) #50
shalamov
Tom, could you please take a look at: device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java
4 years, 4 months ago (2016-07-28 10:04:56 UTC) #51
shalamov
Dcheng, Tom, could you please check device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java whenever you have time? New presubmit filter was ...
4 years, 4 months ago (2016-08-15 10:35:39 UTC) #52
dcheng
https://codereview.chromium.org/1486043002/diff/360001/device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java (right): https://codereview.chromium.org/1486043002/diff/360001/device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java#newcode38 device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java:38: if (message == null || message.data.length == 0) throw ...
4 years, 4 months ago (2016-08-16 06:27:20 UTC) #53
shalamov
https://codereview.chromium.org/1486043002/diff/360001/device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java File device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java (right): https://codereview.chromium.org/1486043002/diff/360001/device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java#newcode38 device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java:38: if (message == null || message.data.length == 0) throw ...
4 years, 4 months ago (2016-08-16 12:47:15 UTC) #54
dcheng
LGTM. Do you have a security reviewer for the overall feature? I wonder what our ...
4 years, 4 months ago (2016-08-16 20:50:09 UTC) #55
kenneth.r.christiansen
On 2016/08/16 at 20:50:09, dcheng wrote: > LGTM. > > Do you have a security ...
4 years, 4 months ago (2016-08-17 09:16:23 UTC) #56
shalamov
On 2016/08/16 20:50:09, dcheng wrote: > https://codereview.chromium.org/1486043002/diff/360001/device/nfc/android/java/src/org/chromium/device/nfc/NfcTagHandler.java#newcode120 > device/nfc/android/java/src/org/chromium/device/nfc/NfcTagHandler.java:120: * > tag to be out ...
4 years, 4 months ago (2016-08-17 12:54:07 UTC) #57
dcheng
On 2016/08/17 12:54:07, shalamov wrote: > On 2016/08/16 20:50:09, dcheng wrote: > > > https://codereview.chromium.org/1486043002/diff/360001/device/nfc/android/java/src/org/chromium/device/nfc/NfcTagHandler.java#newcode120 ...
4 years, 4 months ago (2016-08-17 17:18:47 UTC) #58
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/1486043002/480001
4 years, 4 months ago (2016-08-19 11:40:40 UTC) #80
commit-bot: I haz the power
Committed patchset #18 (id:480001)
4 years, 4 months ago (2016-08-19 11:44:22 UTC) #82
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 11:46:26 UTC) #84
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/3466b6197a8071043533c7adde2b303438ff565d
Cr-Commit-Position: refs/heads/master@{#413108}

Powered by Google App Engine
This is Rietveld 408576698