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

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

Created:
4 years, 9 months ago by shalamov
Modified:
4 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@implement_nfc_watch_in_blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[webnfc] Implement watch method for Android nfc mojo service. Implementation of nfc.watch [1] and nfc.cancelWatch [2] methods for Android nfc mojo service that is used from W3C WebNFC module. [1] https://w3c.github.io/web-nfc/#dom-nfc-watch [2] https://w3c.github.io/web-nfc/#dom-nfc-cancelwatch BUG=520391 BUG=625589 Committed: https://crrev.com/55ac6a4ca3780a5c315a7014f43642e43c5245f0 Cr-Commit-Position: refs/heads/master@{#435189}

Patch Set 1 : Rebased to master. #

Patch Set 2 : Rebased. #

Total comments: 5

Patch Set 3 : Rebased to CL 1486043002 #

Patch Set 4 : Handle ignoreRead flag. #

Patch Set 5 : Fixes for Kenneth's comments + Rebased to CL crrev.com/1486043002 #

Patch Set 6 : Rebase and add size limit check when tag is read. #

Total comments: 20

Patch Set 7 : Fixes for comments from dcheng + unit tests. #

Total comments: 8

Patch Set 8 : Fixes for Reilly's comments #

Total comments: 5

Patch Set 9 : Fixes for review comments from Reilly #

Patch Set 10 : Rebased to master #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1026 lines, -25 lines) Patch
M device/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M device/nfc/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java View 1 2 3 4 5 6 7 8 17 chunks +191 lines, -20 lines 2 comments Download
A device/nfc/android/java/src/org/chromium/device/nfc/NfcMessageValidator.java View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
M device/nfc/android/java/src/org/chromium/device/nfc/NfcTagHandler.java View 1 2 3 4 5 6 6 chunks +22 lines, -3 lines 0 comments Download
M device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java View 1 2 3 4 5 6 7 8 9 5 chunks +132 lines, -2 lines 0 comments Download
A device/nfc/android/junit/src/org/chromium/device/nfc/NFCTest.java View 1 2 3 4 5 6 7 8 9 1 chunk +632 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (36 generated)
shalamov
PTAL.
4 years, 8 months ago (2016-04-25 14:37:56 UTC) #3
kenneth.christiansen
https://codereview.chromium.org/1765533004/diff/40001/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/1765533004/diff/40001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode306 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:306: Log.w(TAG, "Cannot read data to NFC tag. IO_ERROR."); 'read ...
4 years, 8 months ago (2016-04-25 17:55:32 UTC) #4
shalamov
https://codereview.chromium.org/1765533004/diff/40001/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/1765533004/diff/40001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode306 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:306: Log.w(TAG, "Cannot read data to NFC tag. IO_ERROR."); On ...
4 years, 5 months ago (2016-07-05 12:34:52 UTC) #7
shalamov
dcheng, Could ypu please take a look at device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java I've also added size limit check, ...
4 years, 4 months ago (2016-08-24 07:21:05 UTC) #10
shalamov
4 years, 4 months ago (2016-08-24 07:26:34 UTC) #12
dcheng
Also, it would have been nice if both ends (https://codereview.chromium.org/1759373003/) were in the same CL; ...
4 years, 3 months ago (2016-09-08 05:02:32 UTC) #13
shalamov
On 2016/09/08 05:02:32, dcheng wrote: > Also, it would have been nice if both ends ...
4 years, 3 months ago (2016-09-09 06:59:06 UTC) #14
shalamov
dcheng@ I added unit tests, similar to mock tests on blink side in https://codereview.chromium.org/1759373003 do ...
4 years, 3 months ago (2016-09-22 13:38:41 UTC) #16
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1765533004/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/1765533004/diff/180001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode220 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:220: callback.call(mWatcherId, null); This logic makes me nervous. I suggest ...
4 years, 2 months ago (2016-09-29 04:38:02 UTC) #17
shalamov
https://codereview.chromium.org/1765533004/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/1765533004/diff/180001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode220 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:220: callback.call(mWatcherId, null); On 2016/09/29 04:38:02, Reilly Grant wrote: > ...
4 years, 2 months ago (2016-09-30 11:51:35 UTC) #18
Reilly Grant (use Gerrit)
Sorry for the delay, this got lost in my email. This lgtm with a couple ...
4 years, 2 months ago (2016-10-06 04:59:50 UTC) #19
shalamov
dcheng@ do you have more comments for this CL? https://codereview.chromium.org/1765533004/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/1765533004/diff/200001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode100 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:100: ...
4 years, 2 months ago (2016-10-06 13:47:58 UTC) #20
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1765533004/diff/200001/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/1765533004/diff/200001/device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java#newcode197 device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java:197: int langCodeLength = (text[0] & (byte) 0x3F); On 2016/10/06 ...
4 years, 2 months ago (2016-10-07 04:16:23 UTC) #21
shalamov
Tom, could you please take a look at: device/nfc/android/java/src/org/chromium/device/nfc/NfcTypeConverter.java I think it hits *typeconverter* filter, ...
4 years ago (2016-11-28 14:54:43 UTC) #40
Tom Sepez
On 2016/11/28 14:54:43, shalamov wrote: > Tom, could you please take a look at: > ...
4 years ago (2016-11-28 17:30:33 UTC) #41
dcheng
lgtm but please address the comment in a followup =) https://codereview.chromium.org/1765533004/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/1765533004/diff/260001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode145 ...
4 years ago (2016-11-28 19:46:41 UTC) #42
shalamov
https://codereview.chromium.org/1765533004/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/1765533004/diff/260001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode145 device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java:145: mClient = client; On 2016/11/28 19:46:40, dcheng wrote: > ...
4 years ago (2016-11-29 13:07:23 UTC) #43
dcheng
On 2016/11/29 13:07:23, shalamov wrote: > https://codereview.chromium.org/1765533004/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/1765533004/diff/260001/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java#newcode145 > ...
4 years ago (2016-11-29 21:10:39 UTC) #45
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/1765533004/260001
4 years ago (2016-11-30 08:59:13 UTC) #52
commit-bot: I haz the power
Committed patchset #10 (id:260001)
4 years ago (2016-11-30 09:04:54 UTC) #55
commit-bot: I haz the power
4 years ago (2016-11-30 09:07:53 UTC) #57
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/55ac6a4ca3780a5c315a7014f43642e43c5245f0
Cr-Commit-Position: refs/heads/master@{#435189}

Powered by Google App Engine
This is Rietveld 408576698