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

Unified Diff: third_party/WebKit/Source/modules/nfc/NavigatorNFC.cpp

Issue 1439063002: [webnfc] NFC is not required to be ActiveDOMObject. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added myself to AUTHORS file Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/nfc/NavigatorNFC.cpp
diff --git a/third_party/WebKit/Source/modules/nfc/NavigatorNFC.cpp b/third_party/WebKit/Source/modules/nfc/NavigatorNFC.cpp
index 0d2fc2692f85c5f1202121bf7d2e291b80fe3491..6bd3259ad8596ceb24dbf52ab60c90f2f341ee10 100644
--- a/third_party/WebKit/Source/modules/nfc/NavigatorNFC.cpp
+++ b/third_party/WebKit/Source/modules/nfc/NavigatorNFC.cpp
@@ -29,13 +29,13 @@ NavigatorNFC& NavigatorNFC::from(Navigator& navigator)
return *supplement;
}
-NFC* NavigatorNFC::nfc(ExecutionContext* context, Navigator& navigator)
+NFC* NavigatorNFC::nfc(Navigator& navigator)
{
NavigatorNFC& self = NavigatorNFC::from(navigator);
if (!self.m_nfc) {
if (!navigator.frame())
return nullptr;
- self.m_nfc = NFC::create(context, navigator.frame());
+ self.m_nfc = NFC::create(navigator.frame());
}
return self.m_nfc.get();
}
« no previous file with comments | « third_party/WebKit/Source/modules/nfc/NavigatorNFC.h ('k') | third_party/WebKit/Source/modules/nfc/NavigatorNFC.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698