Index: chrome/browser/ui/cocoa/download/download_util_mac.mm |
diff --git a/chrome/browser/ui/cocoa/download/download_util_mac.mm b/chrome/browser/ui/cocoa/download/download_util_mac.mm |
index 17e4826b62b8cc8c03249edc2a6f62752e71f9cc..fe56ebd7aba0a74074af08d85628b1b9e416f2c5 100644 |
--- a/chrome/browser/ui/cocoa/download/download_util_mac.mm |
+++ b/chrome/browser/ui/cocoa/download/download_util_mac.mm |
@@ -7,7 +7,6 @@ |
#include "chrome/browser/ui/cocoa/download/download_util_mac.h" |
#include "base/sys_string_conversions.h" |
-#import "chrome/browser/ui/cocoa/dock_icon.h" |
#include "content/public/browser/download_item.h" |
#include "content/public/browser/download_manager.h" |
#include "ui/gfx/image/image.h" |
@@ -26,19 +25,6 @@ void AddFileToPasteboard(NSPasteboard* pasteboard, const FilePath& path) { |
[pasteboard setPropertyList:fileList forType:NSFilenamesPboardType]; |
} |
-void NotifySystemOfDownloadComplete(const FilePath& path) { |
- NSString* filePath = base::SysUTF8ToNSString(path.value()); |
- [[NSDistributedNotificationCenter defaultCenter] |
- postNotificationName:@"com.apple.DownloadFileFinished" |
- object:filePath]; |
- |
- NSString* parentPath = [filePath stringByDeletingLastPathComponent]; |
- FNNotifyByPath( |
- reinterpret_cast<const UInt8*>([parentPath fileSystemRepresentation]), |
- kFNDirectoryModifiedMessage, |
- kNilOptions); |
-} |
- |
void DragDownload(const DownloadItem* download, |
gfx::Image* icon, |
gfx::NativeView view) { |
@@ -69,14 +55,4 @@ void DragDownload(const DownloadItem* download, |
slideBack:YES]; |
} |
-void UpdateAppIconDownloadProgress(int download_count, |
- bool progress_known, |
- float progress) { |
- DockIcon* dock_icon = [DockIcon sharedDockIcon]; |
- [dock_icon setDownloads:download_count]; |
- [dock_icon setIndeterminate:!progress_known]; |
- [dock_icon setProgress:progress]; |
- [dock_icon updateIcon]; |
-} |
- |
} // namespace download_util |