summaryrefslogtreecommitdiffstats
path: root/chrome/browser/favicon
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-23 02:28:51 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-23 02:28:51 +0000
commit55c8e2eaaf360fb9b5ff982ac1590296ba1bd3e7 (patch)
tree9cadd3347fbe213949799964ee2344f863e8ba8f /chrome/browser/favicon
parent6ccdfd6a972a621805ef9978e611ade6a658a539 (diff)
downloadchromium_src-55c8e2eaaf360fb9b5ff982ac1590296ba1bd3e7.zip
chromium_src-55c8e2eaaf360fb9b5ff982ac1590296ba1bd3e7.tar.gz
chromium_src-55c8e2eaaf360fb9b5ff982ac1590296ba1bd3e7.tar.bz2
Reland 90035 - Deflakify Prerender Favicon Test by removing timer and using
an observer instead. BUG=85729 Review URL: http://codereview.chromium.org/7218024 TBR=tburkard@chromium.org Review URL: http://codereview.chromium.org/7198012 TBR=rvargas@google.com Review URL: http://codereview.chromium.org/7239008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/favicon')
-rw-r--r--chrome/browser/favicon/favicon_tab_helper.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/favicon/favicon_tab_helper.cc b/chrome/browser/favicon/favicon_tab_helper.cc
index 0200e47..426d3e7 100644
--- a/chrome/browser/favicon/favicon_tab_helper.cc
+++ b/chrome/browser/favicon/favicon_tab_helper.cc
@@ -15,6 +15,7 @@
#include "content/browser/tab_contents/tab_contents_delegate.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/webui/web_ui.h"
+#include "content/common/notification_service.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image.h"
@@ -135,6 +136,10 @@ void FaviconTabHelper::StartDownload(int id, const GURL& url, int image_size) {
}
void FaviconTabHelper::NotifyFaviconUpdated() {
+ NotificationService::current()->Notify(
+ NotificationType::FAVICON_UPDATED,
+ Source<TabContents>(tab_contents()),
+ NotificationService::NoDetails());
tab_contents()->NotifyNavigationStateChanged(TabContents::INVALIDATE_TAB);
}