Commit 1566fbab authored by avi@chromium.org's avatar avi@chromium.org

Create favicon tab helpers for blocked popups.

BUG=167457
TEST=no more crashes in the crash server


Review URL: https://chromiumcodereview.appspot.com/11788019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175438 0039d316-1c4b-4281-b951-d872f2087c98
parent c8a77f81
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "chrome/browser/ui/blocked_content/blocked_content_container.h" #include "chrome/browser/ui/blocked_content/blocked_content_container.h"
#include "base/logging.h" #include "base/logging.h"
#include "chrome/browser/favicon/favicon_tab_helper.h"
#include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
#include "ui/gfx/rect.h" #include "ui/gfx/rect.h"
...@@ -56,6 +57,9 @@ void BlockedContentContainer::AddWebContents(content::WebContents* web_contents, ...@@ -56,6 +57,9 @@ void BlockedContentContainer::AddWebContents(content::WebContents* web_contents,
web_contents->SetDelegate(this); web_contents->SetDelegate(this);
BlockedContentTabHelper::CreateForWebContents(web_contents); BlockedContentTabHelper::CreateForWebContents(web_contents);
// Various UI parts assume the ability to retrieve favicons from blocked
// content.
FaviconTabHelper::CreateForWebContents(web_contents);
BlockedContentTabHelper::FromWebContents(web_contents)->set_delegate(this); BlockedContentTabHelper::FromWebContents(web_contents)->set_delegate(this);
// Since the new web_contents will not be shown, call WasHidden to change // Since the new web_contents will not be shown, call WasHidden to change
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment