diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 05:16:50 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 05:16:50 +0000 |
commit | c9cd22294bf1ef854e41c547d7c9f722b13593f6 (patch) | |
tree | f6fa6d01d068631718ef36f32470a22386bc6cec /chrome/browser/fav_icon_helper.cc | |
parent | 2ac844349bbe511cf17e597bfc3e8a0aaab9ceab (diff) | |
download | chromium_src-c9cd22294bf1ef854e41c547d7c9f722b13593f6.zip chromium_src-c9cd22294bf1ef854e41c547d7c9f722b13593f6.tar.gz chromium_src-c9cd22294bf1ef854e41c547d7c9f722b13593f6.tar.bz2 |
Merge two TabContents::InvalidateTypes types and properly update tab download icon.
INVALIDATE_FAVICON and INVALIDATE_TITLE become INVALIDATE_TAB. Also removed some dead code.
TEST=starting a download in a tab should show the download icon. Closing the dshelf should make the icon disappear.
Review URL: http://codereview.chromium.org/109050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/fav_icon_helper.cc')
-rw-r--r-- | chrome/browser/fav_icon_helper.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/fav_icon_helper.cc b/chrome/browser/fav_icon_helper.cc index 3cf5af5..f29f68c 100644 --- a/chrome/browser/fav_icon_helper.cc +++ b/chrome/browser/fav_icon_helper.cc @@ -122,10 +122,7 @@ void FavIconHelper::UpdateFavIcon(NavigationEntry* entry, return; entry->favicon().set_bitmap(image); - if (tab_contents_->delegate()) { - tab_contents_->delegate()->NavigationStateChanged( - tab_contents_, TabContents::INVALIDATE_FAVICON); - } + tab_contents_->NotifyNavigationStateChanged(TabContents::INVALIDATE_TAB); } NavigationEntry* FavIconHelper::GetEntry() { |