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

Unified Diff: chrome/browser/ui/webui/fileicon_source.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: 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/webui/fileicon_source.cc
diff --git a/chrome/browser/ui/webui/fileicon_source.cc b/chrome/browser/ui/webui/fileicon_source.cc
index cd5d93618157485af8ed65a586f5031e2726cd26..7a6463c0d3ca40801ca64645a2c97a74cce5fad2 100644
--- a/chrome/browser/ui/webui/fileicon_source.cc
+++ b/chrome/browser/ui/webui/fileicon_source.cc
@@ -53,7 +53,8 @@ void FileIconSource::StartDataRequest(const std::string& path,
IconManager::Handle h = im->LoadIcon(escaped_filepath,
IconLoader::NORMAL,
&cancelable_consumer_,
- NewCallback(this, &FileIconSource::OnFileIconDataAvailable));
+ base::Bind(&FileIconSource::OnFileIconDataAvailable,
+ base::Unretained(this)));
// Attach the ChromeURLDataManager request ID to the history request.
cancelable_consumer_.SetClientData(im, h, request_id);

Powered by Google App Engine
This is Rietveld 408576698