Skip to content

Commit

Permalink
Fix typo in NetworkProcess::acquireLockedFileGrant()
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=268327

Reviewed by Per Arne Vollan.

* Source/WebKit/NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::setIsHoldingLockedFiles):
* Source/WebKit/NetworkProcess/NetworkProcess.h:
* Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm:
(WebKit::NetworkProcess::acquireLockedFileGrant):
(WebKit::NetworkProcess::aqcuireLockedFileGrant): Deleted.

Canonical link: https://commits.webkit.org/273704@main
  • Loading branch information
cdumez committed Jan 30, 2024
1 parent 26040f2 commit 71e53ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/WebKit/NetworkProcess/NetworkProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2981,7 +2981,7 @@ void NetworkProcess::setIsHoldingLockedFiles(bool isHoldingLockedFiles)
#if USE(EXTENSIONKIT)
if (hasAcquiredGrant())
return;
if (aqcuireLockedFileGrant())
if (acquireLockedFileGrant())
return;
#endif

Expand Down
2 changes: 1 addition & 1 deletion Source/WebKit/NetworkProcess/NetworkProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ class NetworkProcess : public AuxiliaryProcess, private DownloadManager::Client,
#if USE(RUNNINGBOARD)
void setIsHoldingLockedFiles(bool);
#if USE(EXTENSIONKIT)
bool aqcuireLockedFileGrant();
bool acquireLockedFileGrant();
void invalidateGrant();
bool hasAcquiredGrant() const;
#endif
Expand Down
2 changes: 1 addition & 1 deletion Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void saveCookies(NSHTTPCookieStorage *cookieStorage, CompletionHandler<void()>&&
#endif // HAVE(NW_PROXY_CONFIG)

#if USE(RUNNINGBOARD) && USE(EXTENSIONKIT)
bool NetworkProcess::aqcuireLockedFileGrant()
bool NetworkProcess::acquireLockedFileGrant()
{
m_holdingLockedFileGrant = [WKProcessExtension.sharedInstance grant:@"com.apple.common" name:@"FinishTaskInterruptable"];
if (m_holdingLockedFileGrant)
Expand Down

0 comments on commit 71e53ae

Please sign in to comment.