fix: Resolve bookmarks without mounting network drives (#24708)
This commit is contained in:
parent
d9a1c453ab
commit
42409d860b
1 changed files with 7 additions and 6 deletions
|
@ -32,12 +32,13 @@ base::RepeatingCallback<void()> App::StartAccessingSecurityScopedResource(
|
|||
// Create bookmarkUrl from NSData.
|
||||
BOOL isStale = false;
|
||||
NSError* error = nil;
|
||||
NSURL* bookmarkUrl =
|
||||
[NSURL URLByResolvingBookmarkData:bookmarkData
|
||||
options:NSURLBookmarkResolutionWithSecurityScope
|
||||
relativeToURL:nil
|
||||
bookmarkDataIsStale:&isStale
|
||||
error:&error];
|
||||
NSURL* bookmarkUrl = [NSURL
|
||||
URLByResolvingBookmarkData:bookmarkData
|
||||
options:NSURLBookmarkResolutionWithSecurityScope |
|
||||
NSURLBookmarkResolutionWithoutMounting
|
||||
relativeToURL:nil
|
||||
bookmarkDataIsStale:&isStale
|
||||
error:&error];
|
||||
|
||||
if (error != nil) {
|
||||
NSString* err =
|
||||
|
|
Loading…
Reference in a new issue