Title: [271228] trunk/Source/WebKit
Revision
271228
Author
[email protected]
Date
2021-01-07 00:16:56 -0800 (Thu, 07 Jan 2021)

Log Message

Unreviewed, a build fix after r271221

* Platform/spi/Cocoa/NearFieldSPI.h:
* UIProcess/WebAuthentication/Cocoa/NfcService.mm:
(WebKit::NfcService::isAvailable):
(WebKit::NfcService::platformStartDiscovery):
Changed back to sharedHardwareManager.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (271227 => 271228)


--- trunk/Source/WebKit/ChangeLog	2021-01-07 08:10:47 UTC (rev 271227)
+++ trunk/Source/WebKit/ChangeLog	2021-01-07 08:16:56 UTC (rev 271228)
@@ -1,3 +1,13 @@
+2021-01-07  Jiewen Tan  <[email protected]>
+
+        Unreviewed, a build fix after r271221
+
+        * Platform/spi/Cocoa/NearFieldSPI.h:
+        * UIProcess/WebAuthentication/Cocoa/NfcService.mm:
+        (WebKit::NfcService::isAvailable):
+        (WebKit::NfcService::platformStartDiscovery):
+        Changed back to sharedHardwareManager.
+
 2021-01-06  Jiewen Tan  <[email protected]>
 
         [WebAuthn] Adopt new UI for the Client PIN and dismiss flow

Modified: trunk/Source/WebKit/Platform/spi/Cocoa/NearFieldSPI.h (271227 => 271228)


--- trunk/Source/WebKit/Platform/spi/Cocoa/NearFieldSPI.h	2021-01-07 08:10:47 UTC (rev 271227)
+++ trunk/Source/WebKit/Platform/spi/Cocoa/NearFieldSPI.h	2021-01-07 08:16:56 UTC (rev 271228)
@@ -104,7 +104,7 @@
 @end
 
 @interface NFHardwareManager : NSObject
-+ (instancetype)sharedHardwareManagerWithNoUI;
++ (instancetype)sharedHardwareManager;
 - (NSObject<NFSession> *)startReaderSession:(void(^)(NFReaderSession *session, NSError *error))theStartCallback;
 - (BOOL)areFeaturesSupported:(NFFeature)featureMask outError:(NSError**)outError;
 @end

Modified: trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcService.mm (271227 => 271228)


--- trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcService.mm	2021-01-07 08:10:47 UTC (rev 271227)
+++ trunk/Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcService.mm	2021-01-07 08:16:56 UTC (rev 271228)
@@ -52,7 +52,7 @@
 bool NfcService::isAvailable()
 {
 #if HAVE(NEAR_FIELD)
-    return [[getNFHardwareManagerClass() sharedHardwareManagerWithNoUI] areFeaturesSupported:NFFeatureReaderMode outError:nil];
+    return [[getNFHardwareManagerClass() sharedHardwareManager] areFeaturesSupported:NFFeatureReaderMode outError:nil];
 #else
     return false;
 #endif
@@ -118,7 +118,7 @@
             m_connection = NfcConnection::create(WTFMove(session), *this);
         });
     });
-    [[getNFHardwareManagerClass() sharedHardwareManagerWithNoUI] startReaderSession:callback.get()];
+    [[getNFHardwareManagerClass() sharedHardwareManager] startReaderSession:callback.get()];
 #endif // HAVE(NEAR_FIELD)
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to