Index: chrome/browser/favicon/favicon_tab_helper.cc |
=================================================================== |
--- chrome/browser/favicon/favicon_tab_helper.cc (revision 153636) |
+++ chrome/browser/favicon/favicon_tab_helper.cc (working copy) |
@@ -176,6 +176,13 @@ |
void FaviconTabHelper::DidNavigateMainFrame( |
const content::LoadCommittedDetails& details, |
const content::FrameNavigateParams& params) { |
+ |
+ // When navigating to a different host, clear the favicon. |
+ if (details.previous_url.host() != details.entry->GetURL().host()) { |
pkotwicz
2012/09/29 23:54:38
The favicon should actually always be cleared. (Yo
|
+ FaviconStatus default_favicon; |
+ details.entry->GetFavicon() = default_favicon; |
msw
2012/09/21 21:46:54
nit: I think you can just do details.entry->GetFav
|
+ } |
+ |
// Get the favicon, either from history or request it from the net. |
FetchFavicon(details.entry->GetURL()); |
} |