diff options
author | sdefresne <sdefresne@chromium.org> | 2015-04-10 08:25:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-10 15:25:40 +0000 |
commit | 45582697f9846db420f07615886651e9688e70d3 (patch) | |
tree | e513186de8fcad58e36cb0f33dc462ec210a3ac3 /chrome/browser/task_manager/tab_contents_information.cc | |
parent | 375ce9a7839b5610d09e6e18f9d0358bf3571a83 (diff) | |
download | chromium_src-45582697f9846db420f07615886651e9688e70d3.zip chromium_src-45582697f9846db420f07615886651e9688e70d3.tar.gz chromium_src-45582697f9846db420f07615886651e9688e70d3.tar.bz2 |
Remove FaviconTabHelper
Convert CreateForWebContents() and ShouldDisplayFavicon() from static
method into free functions and move them into the favicon namespace.
Port client code to use favicon::ContentFaviconDriver::FromWebContents()
to access the favicon::FaviconDriver and prefer to use the public base
class instead of favicon::ContentFaviconDriver.
Rename FaviconTabHelperTest to ContentFaviconDriverTest.
BUG=359569
TBR=jochen
Review URL: https://codereview.chromium.org/1075443003
Cr-Commit-Position: refs/heads/master@{#324639}
Diffstat (limited to 'chrome/browser/task_manager/tab_contents_information.cc')
-rw-r--r-- | chrome/browser/task_manager/tab_contents_information.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/task_manager/tab_contents_information.cc b/chrome/browser/task_manager/tab_contents_information.cc index 6087631..c810e91 100644 --- a/chrome/browser/task_manager/tab_contents_information.cc +++ b/chrome/browser/task_manager/tab_contents_information.cc @@ -8,7 +8,7 @@ #include "base/strings/utf_string_conversions.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/devtools/devtools_window.h" -#include "chrome/browser/favicon/favicon_tab_helper.h" +#include "chrome/browser/favicon/favicon_helper.h" #include "chrome/browser/prerender/prerender_manager.h" #include "chrome/browser/prerender/prerender_manager_factory.h" #include "chrome/browser/profiles/profile.h" @@ -19,6 +19,7 @@ #include "chrome/browser/ui/browser_finder.h" #include "chrome/browser/ui/browser_iterator.h" #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" +#include "components/favicon/content/content_favicon_driver.h" #include "content/public/browser/render_process_host.h" #include "content/public/browser/web_contents.h" #include "extensions/browser/extension_registry.h" @@ -123,9 +124,10 @@ base::string16 TabContentsResource::GetTitle() const { gfx::ImageSkia TabContentsResource::GetIcon() const { if (IsContentsPrerendering(web_contents_)) return *prerender_icon_; - FaviconTabHelper::CreateForWebContents(web_contents_); - return FaviconTabHelper::FromWebContents(web_contents_)-> - GetFavicon().AsImageSkia(); + favicon::CreateContentFaviconDriverForWebContents(web_contents_); + return favicon::ContentFaviconDriver::FromWebContents(web_contents_) + ->GetFavicon() + .AsImageSkia(); } WebContents* TabContentsResource::GetWebContents() const { |