summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/favicon_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/favicon_source.cc')
-rw-r--r--chrome/browser/ui/webui/favicon_source.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/ui/webui/favicon_source.cc b/chrome/browser/ui/webui/favicon_source.cc
index 7b66fb7..480c2f5 100644
--- a/chrome/browser/ui/webui/favicon_source.cc
+++ b/chrome/browser/ui/webui/favicon_source.cc
@@ -4,7 +4,8 @@
#include "chrome/browser/ui/webui/favicon_source.h"
-#include "base/callback.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/url_constants.h"
#include "grit/ui_resources.h"
@@ -41,7 +42,8 @@ void FaviconSource::StartDataRequest(const std::string& path,
GURL(path.substr(8)),
history::FAVICON,
&cancelable_consumer_,
- NewCallback(this, &FaviconSource::OnFaviconDataAvailable));
+ base::Bind(&FaviconSource::OnFaviconDataAvailable,
+ base::Unretained(this)));
} else {
GURL url;
@@ -63,7 +65,8 @@ void FaviconSource::StartDataRequest(const std::string& path,
url,
icon_types_,
&cancelable_consumer_,
- NewCallback(this, &FaviconSource::OnFaviconDataAvailable));
+ base::Bind(&FaviconSource::OnFaviconDataAvailable,
+ base::Unretained(this)));
}
// Attach the ChromeURLDataManager request ID to the history request.
cancelable_consumer_.SetClientData(favicon_service, handle, request_id);