Commit ea963b61 authored by rsesek's avatar rsesek Committed by Commit bot

[Mac] Remove usage of deprecated FNNotifyByPath().

This moves to using -[NSWorkspace noteFileSystemChanged:], which internally
strips the last path component and calls the deprecated function.

BUG=650794
R=avi@chromium.org

Review-Url: https://codereview.chromium.org/2391573004
Cr-Commit-Position: refs/heads/master@{#422977}
parent 5edda59b
...@@ -242,10 +242,6 @@ void DownloadStatusUpdater::UpdateAppIconDownloadProgress( ...@@ -242,10 +242,6 @@ void DownloadStatusUpdater::UpdateAppIconDownloadProgress(
} }
// Notify the Finder. // Notify the Finder.
NSString* parent_path = [download_path stringByDeletingLastPathComponent]; [[NSWorkspace sharedWorkspace] noteFileSystemChanged:download_path];
FNNotifyByPath(
reinterpret_cast<const UInt8*>([parent_path fileSystemRepresentation]),
kFNDirectoryModifiedMessage,
kNilOptions);
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment