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

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

Issue 8068013: Add interface to CancelableRequest that allows use of base::Callback<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address brett's comments. Created 9 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 | « chrome/browser/icon_manager.cc ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/download/download_item_mac.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_mac.mm b/chrome/browser/ui/cocoa/download/download_item_mac.mm
index 6554be4ec414f759bd86b061d4aaa899aa520ba7..f1a4ad5367dd44b41e9fd05c8a26e257b1db5aee 100644
--- a/chrome/browser/ui/cocoa/download/download_item_mac.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_mac.mm
@@ -87,8 +87,8 @@ void DownloadItemMac::LoadIcon() {
// The icon isn't cached, load it asynchronously.
icon_manager->LoadIcon(file, IconLoader::ALL, &icon_consumer_,
- NewCallback(this,
- &DownloadItemMac::OnExtractIconComplete));
+ base::Bind(&DownloadItemMac::OnExtractIconComplete,
+ base::Unretained(this)));
}
void DownloadItemMac::OnExtractIconComplete(IconManager::Handle handle,
« no previous file with comments | « chrome/browser/icon_manager.cc ('k') | chrome/browser/ui/gtk/download/download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698