| Index: chrome/browser/ui/webui/favicon_source.cc
|
| diff --git a/chrome/browser/ui/webui/favicon_source.cc b/chrome/browser/ui/webui/favicon_source.cc
|
| index 8461a417c78bfbd228e1f8cd4017bf8985277698..d03cbb2a8914d51b6f5116237f37ebc5cf4b6b34 100644
|
| --- a/chrome/browser/ui/webui/favicon_source.cc
|
| +++ b/chrome/browser/ui/webui/favicon_source.cc
|
| @@ -33,11 +33,13 @@ void FavIconSource::StartDataRequest(const std::string& path,
|
| if (path.size() > 8 && path.substr(0, 8) == "iconurl/") {
|
| handle = favicon_service->GetFavicon(
|
| GURL(path.substr(8)),
|
| + history::FAV_ICON,
|
| &cancelable_consumer_,
|
| NewCallback(this, &FavIconSource::OnFavIconDataAvailable));
|
| } else {
|
| handle = favicon_service->GetFaviconForURL(
|
| GURL(path),
|
| + history::FAV_ICON,
|
| &cancelable_consumer_,
|
| NewCallback(this, &FavIconSource::OnFavIconDataAvailable));
|
| }
|
| @@ -62,18 +64,16 @@ bool FavIconSource::ShouldReplaceExistingSource() const {
|
|
|
| void FavIconSource::OnFavIconDataAvailable(
|
| FaviconService::Handle request_handle,
|
| - bool know_favicon,
|
| - scoped_refptr<RefCountedMemory> data,
|
| - bool expired,
|
| - GURL icon_url) {
|
| + FaviconService::FaviconData favicon) {
|
| FaviconService* favicon_service =
|
| profile_->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
| int request_id = cancelable_consumer_.GetClientData(favicon_service,
|
| request_handle);
|
|
|
| - if (know_favicon && data.get() && data->size()) {
|
| + if (favicon.known_icon && favicon.image_data.get() &&
|
| + favicon.image_data->size()) {
|
| // Forward the data along to the networking system.
|
| - SendResponse(request_id, data);
|
| + SendResponse(request_id, favicon.image_data);
|
| } else {
|
| SendDefaultResponse(request_id);
|
| }
|
|
|