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

Unified Diff: chrome/browser/download/download_status_updater_mac.mm

Issue 2391573004: [Mac] Remove usage of deprecated FNNotifyByPath(). (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_status_updater_mac.mm
diff --git a/chrome/browser/download/download_status_updater_mac.mm b/chrome/browser/download/download_status_updater_mac.mm
index 2cdb9523ab840055ec560c3b7def6cbe99e8b5b0..574553b641ce23f2d825c80d0a9e3f852405ad0f 100644
--- a/chrome/browser/download/download_status_updater_mac.mm
+++ b/chrome/browser/download/download_status_updater_mac.mm
@@ -242,10 +242,6 @@ void DownloadStatusUpdater::UpdateAppIconDownloadProgress(
}
// Notify the Finder.
- NSString* parent_path = [download_path stringByDeletingLastPathComponent];
- FNNotifyByPath(
- reinterpret_cast<const UInt8*>([parent_path fileSystemRepresentation]),
- kFNDirectoryModifiedMessage,
- kNilOptions);
+ [[NSWorkspace sharedWorkspace] noteFileSystemChanged:download_path];
Avi (use Gerrit) 2016/10/04 22:12:29 -noteFileSystemChanged: has the note: "Use of thi
Robert Sesek 2016/10/04 22:38:49 Yes, as far as I know, the only public FSEvents AP
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698