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

Unified Diff: chrome/browser/ui/cocoa/download/download_util_mac.mm

Issue 10827207: Mountain Lion: use the system download progress. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: v3.1 Created 8 years, 4 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
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

Powered by Google App Engine
This is Rietveld 408576698