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

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: 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
« no previous file with comments | « base/mac/mac_util.mm ('k') | chrome/browser/favicon/favicon_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_handler.cc
diff --git a/chrome/browser/favicon/favicon_handler.cc b/chrome/browser/favicon/favicon_handler.cc
index de667b07c5236ed92934f1b0aadc443ffd988573..881008dbb39df3b1d1ebc42be5aae5cae780f7de 100644
--- a/chrome/browser/favicon/favicon_handler.cc
+++ b/chrome/browser/favicon/favicon_handler.cc
@@ -323,7 +323,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);
}
« no previous file with comments | « base/mac/mac_util.mm ('k') | chrome/browser/favicon/favicon_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698