Consolidates app id comparison
[chromium-blink-merge.git] / device / nfc / nfc_tag_technology.cc
blobb07fb5263f16bfe8e7ae832ec920253174699704
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "device/nfc/nfc_tag_technology.h"
7 #include "device/nfc/nfc_tag.h"
9 namespace device {
11 NfcTagTechnology::NfcTagTechnology(NfcTag* tag) : tag_(tag) {
14 NfcTagTechnology::NfcTagTechnology() : tag_(NULL) {
17 NfcTagTechnology::~NfcTagTechnology() {
20 bool NfcNdefTagTechnology::IsSupportedByTag() const {
21 return tag() && (tag()->GetSupportedTechnologies() &
22 NfcTagTechnology::kTechnologyTypeNdef);
25 NfcNdefTagTechnology::NfcNdefTagTechnology(NfcTag* tag)
26 : NfcTagTechnology(tag) {
29 NfcNdefTagTechnology::~NfcNdefTagTechnology() {
32 } // namespace device