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

Unified Diff: chrome/browser/favicon/favicon_service.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
Index: chrome/browser/favicon/favicon_service.cc
diff --git a/chrome/browser/favicon/favicon_service.cc b/chrome/browser/favicon/favicon_service.cc
index 65facfebfc22148794142e2e63a6384cec4ffaf7..67d1b3ec4478d61d1304728a7231e6df18954e86 100644
--- a/chrome/browser/favicon/favicon_service.cc
+++ b/chrome/browser/favicon/favicon_service.cc
@@ -314,6 +314,8 @@ void FaviconService::RunFaviconImageCallbackWithBitmapResults(
favicon_bitmap_results,
FaviconUtil::GetFaviconScaleFactors(),
desired_size_in_dip);
+ FaviconUtil::SetFaviconColorSpace(&image_result.image);
+
image_result.icon_url = image_result.image.IsEmpty() ?
GURL() : favicon_bitmap_results[0].icon_url;
callback.Run(image_result);

Powered by Google App Engine
This is Rietveld 408576698