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

Unified Diff: chrome/browser/ui/gtk/download/download_item_gtk.cc

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
Index: chrome/browser/ui/gtk/download/download_item_gtk.cc
diff --git a/chrome/browser/ui/gtk/download/download_item_gtk.cc b/chrome/browser/ui/gtk/download/download_item_gtk.cc
index a908be5430eca2e6206a8b9209b6a3e78b0f0014..ea3a30e732313d4dbb10eab95cef22c82ae785f1 100644
--- a/chrome/browser/ui/gtk/download/download_item_gtk.cc
+++ b/chrome/browser/ui/gtk/download/download_item_gtk.cc
@@ -461,10 +461,12 @@ void DownloadItemGtk::LoadIcon() {
icon_filepath_ = get_download()->GetUserVerifiedFilePath();
im->LoadIcon(icon_filepath_,
IconLoader::SMALL, &icon_consumer_,
- NewCallback(this, &DownloadItemGtk::OnLoadSmallIconComplete));
+ base::Bind(&DownloadItemGtk::OnLoadSmallIconComplete,
+ base::Unretained(this)));
im->LoadIcon(icon_filepath_,
IconLoader::LARGE, &icon_consumer_,
- NewCallback(this, &DownloadItemGtk::OnLoadLargeIconComplete));
+ base::Bind(&DownloadItemGtk::OnLoadLargeIconComplete,
+ base::Unretained(this)));
}
void DownloadItemGtk::UpdateTooltip() {
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.mm ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698