Closed Bug 1146400 Opened 9 years ago Closed 9 years ago

[NFC] Remove mozNfc checks from NfcManager

Categories

(Firefox OS Graveyard :: NFC, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S9 (3apr)

People

(Reporter: tauzen, Assigned: tauzen)

References

Details

Attachments

(1 file)

NfcManager is instantiated (via NfcCore) only when mozNfc API is available [0]. All the |if(mozNfc)| checks should be removed. 

[0] - https://github.com/mozilla-b2g/gaia/blob/d36676d0a02eb13f5eb358d5f2413a9bba103c40/apps/system/js/core.js#L39-L57
Blocks: NFC-Gaia
Assignee: nobody → kmioduszewski
Comment on attachment 8581823 [details] [review]
[gaia] tauzen:Bug1146400_no_nfcdom_check > mozilla-b2g:master

Hi Greg, this is a small clean up patch. I've removed the unnecessary |mozNfc| checks, changed |dispatchEvent| to |this.publish| (from BaseModule). Additionally I've added comments which I forgot to add in Bug 1141490. Could you review this?
Attachment #8581823 - Flags: review?(gweng)
Comment on attachment 8581823 [details] [review]
[gaia] tauzen:Bug1146400_no_nfcdom_check > mozilla-b2g:master

OK I've checked the patch it's good if the instance existing is guaranteed by the new system architecture.
Attachment #8581823 - Flags: review?(gweng) → review+
Yes, exactly. NfcManager is instantiated only if mozNfc API is available. This was actually pointed out by Alive [0]. Thank you very much for the review.

[0] - https://github.com/mozilla-b2g/gaia/pull/28962#discussion_r26729256
Keywords: checkin-needed
http://docs.taskcluster.net/tools/task-graph-inspector/#z0kVDb9qSbGDHgz5tGPzmw

The pull request failed to pass integration tests. It could not be landed, please try again.
All tests on github are green [0], so let's try this once more.

[0] - https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=4f78f12181b6fbe0e2490d865c7b1a0cdbbfa6c5
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S9 (3apr)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: