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

Unified Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2830643002: [webnfc] Add WebNFC feature flag (Closed)
Patch Set: Add flags to histograms.xml Created 3 years, 8 months 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/web/WebRuntimeFeatures.cpp
diff --git a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
index dd795437b3f869cc104a9880073bedc70cb7696e..5d88d1917bdb8931d3822325af1885f05b7e8103 100644
--- a/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
+++ b/third_party/WebKit/Source/web/WebRuntimeFeatures.cpp
@@ -47,6 +47,10 @@ void WebRuntimeFeatures::EnableWebAssemblySerialization(bool enable) {
RuntimeEnabledFeatures::setWebAssemblySerializationEnabled(enable);
}
+void WebRuntimeFeatures::EnableWebNfc(bool enable) {
+ RuntimeEnabledFeatures::setWebNFCEnabled(enable);
+}
+
void WebRuntimeFeatures::EnableWebUsb(bool enable) {
RuntimeEnabledFeatures::setWebUSBEnabled(enable);
}

Powered by Google App Engine
This is Rietveld 408576698