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

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: Fix dcheck Created 9 years, 3 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_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,

Powered by Google App Engine
This is Rietveld 408576698