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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.mm

Issue 2321833002: [Mac] Desaturate the Favicon for Network Errors (Closed)
Patch Set: move desaturation code Created 4 years, 3 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/ui/cocoa/tab_contents/favicon_util_mac.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.mm b/chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.mm
index 348cf20030e259e4998c894867f326f02ab4ebf3..6cf8a116a0c9dddb96242128319ffff8655ee76f 100644
--- a/chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/favicon_util_mac.mm
@@ -29,12 +29,12 @@ NSImage* FaviconForWebContents(content::WebContents* contents, SkColor color) {
contents ? favicon::ContentFaviconDriver::FromWebContents(contents)
: nullptr;
if (favicon_driver && favicon_driver->FaviconIsValid()) {
- NSImage* image = favicon_driver->GetFavicon().AsNSImage();
+ NSImage* image = favicon_driver->GetFavicon().ToNSImage();
+
// The |image| could be nil if the bitmap is null. In that case, fallback
Nico 2016/09/15 16:58:37 Is this still true now that you switched the call
spqchan 2016/09/15 22:07:04 Good point, the change was accidental
// to the default image.
- if (image) {
+ if (image)
return image;
- }
}
if (ui::MaterialDesignController::IsModeMaterial()) {

Powered by Google App Engine
This is Rietveld 408576698