| Index: chrome/browser/ui/webui/extension_icon_source.cc
|
| diff --git a/chrome/browser/ui/webui/extension_icon_source.cc b/chrome/browser/ui/webui/extension_icon_source.cc
|
| index 321cd55a7abc01d99a8b5c68c04aa8beb5a28426..51918634f02135d6be3e66efd74be77b13455ca3 100644
|
| --- a/chrome/browser/ui/webui/extension_icon_source.cc
|
| +++ b/chrome/browser/ui/webui/extension_icon_source.cc
|
| @@ -200,23 +200,22 @@ void ExtensionIconSource::LoadFaviconImage(int request_id) {
|
|
|
| GURL favicon_url = GetData(request_id)->extension->GetFullLaunchURL();
|
| FaviconService::Handle handle = favicon_service->GetFaviconForURL(
|
| - favicon_url, &cancelable_consumer_,
|
| + favicon_url,
|
| + history::FAV_ICON,
|
| + &cancelable_consumer_,
|
| NewCallback(this, &ExtensionIconSource::OnFaviconDataAvailable));
|
| cancelable_consumer_.SetClientData(favicon_service, handle, request_id);
|
| }
|
|
|
| void ExtensionIconSource::OnFaviconDataAvailable(
|
| FaviconService::Handle request_handle,
|
| - bool know_favicon,
|
| - scoped_refptr<RefCountedMemory> data,
|
| - bool expired,
|
| - GURL icon_url) {
|
| + history::FaviconData favicon) {
|
| int request_id = cancelable_consumer_.GetClientData(
|
| profile_->GetFaviconService(Profile::EXPLICIT_ACCESS), request_handle);
|
| ExtensionIconRequest* request = GetData(request_id);
|
|
|
| // Fallback to the default icon if there wasn't a favicon.
|
| - if (!know_favicon || !data.get() || !data->size()) {
|
| + if (!favicon.is_valid()) {
|
| LoadDefaultImage(request_id);
|
| return;
|
| }
|
| @@ -225,9 +224,10 @@ void ExtensionIconSource::OnFaviconDataAvailable(
|
| // If we don't need a grayscale image, then we can bypass FinalizeImage
|
| // to avoid unnecessary conversions.
|
| ClearData(request_id);
|
| - SendResponse(request_id, data);
|
| + SendResponse(request_id, favicon.image_data);
|
| } else {
|
| - FinalizeImage(ToBitmap(data->front(), data->size()), request_id);
|
| + FinalizeImage(ToBitmap(favicon.image_data->front(),
|
| + favicon.image_data->size()), request_id);
|
| }
|
| }
|
|
|
|
|