| Index: chrome/browser/instant/instant_loader.cc
|
| diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
|
| index 28dad8f8ddd82fd9bb6b52a1e07a65718b4fdc76..e4f188538bdddffa530e361281a3e99a005e2a9a 100644
|
| --- a/chrome/browser/instant/instant_loader.cc
|
| +++ b/chrome/browser/instant/instant_loader.cc
|
| @@ -376,10 +376,11 @@ void InstantLoader::WebContentsDelegateImpl::CommitHistory(
|
| tab->profile()->GetFaviconService(Profile::EXPLICIT_ACCESS);
|
|
|
| if (favicon_service && active_entry->GetFavicon().valid &&
|
| - !active_entry->GetFavicon().bitmap.empty()) {
|
| + !active_entry->GetFavicon().image.IsEmpty()) {
|
| std::vector<unsigned char> image_data;
|
| - gfx::PNGCodec::EncodeBGRASkBitmap(active_entry->GetFavicon().bitmap, false,
|
| - &image_data);
|
| + // TODO: Add all variants once the history service supports it.
|
| + gfx::PNGCodec::EncodeBGRASkBitmap(active_entry->GetFavicon().AsBitmap(),
|
| + false, &image_data);
|
| favicon_service->SetFavicon(active_entry->GetURL(),
|
| active_entry->GetFavicon().url,
|
| image_data,
|
|
|