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

Unified Diff: chrome/browser/favicon/favicon_handler.cc

Issue 16370006: Make the favicons look visually the same after refreshing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed avi@'s comments Created 7 years, 6 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/favicon/favicon_handler.cc
diff --git a/chrome/browser/favicon/favicon_handler.cc b/chrome/browser/favicon/favicon_handler.cc
index 47717904c95f63739669dec5ea42ecc889316508..57887b705ddaa1f7374c3d1dbfd61932df703551 100644
--- a/chrome/browser/favicon/favicon_handler.cc
+++ b/chrome/browser/favicon/favicon_handler.cc
@@ -300,7 +300,10 @@ void FaviconHandler::UpdateFavicon(NavigationEntry* entry,
if (image.IsEmpty())
return;
- entry->GetFavicon().image = image;
+ gfx::Image image_with_adjusted_colorspace = image;
+ FaviconUtil::SetFaviconColorSpace(&image_with_adjusted_colorspace);
+
+ entry->GetFavicon().image = image_with_adjusted_colorspace;
delegate_->NotifyFaviconUpdated(icon_url_changed);
}

Powered by Google App Engine
This is Rietveld 408576698