summaryrefslogtreecommitdiffstats
path: root/content/browser
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 22:43:43 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-11 22:43:43 +0000
commita965ca65e8170b3d685b7ca9185929fe3915b7f9 (patch)
tree0b4020409e9c79163bcd8e7bc6f35e624d4b4951 /content/browser
parent5287c9bb1153016b2eff85fbcf7c06361bf72898 (diff)
downloadchromium_src-a965ca65e8170b3d685b7ca9185929fe3915b7f9.zip
chromium_src-a965ca65e8170b3d685b7ca9185929fe3915b7f9.tar.gz
chromium_src-a965ca65e8170b3d685b7ca9185929fe3915b7f9.tar.bz2
Revert 81158 due to memory bots - a Downloaded or retrieved favicon and touch in FaviconHelper.b.ViewHostMsg_UpdateFaviconURL can update multiple icon urlsBUG=71571TEST=Tested with existing unit test and add 2 new unit testsReview URL: http://codereview.chromium.org/6672065
TBR=michaelbai@google.com Review URL: http://codereview.chromium.org/6820054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r--content/browser/tab_contents/tab_contents.cc16
-rw-r--r--content/browser/tab_contents/tab_contents.h6
2 files changed, 1 insertions, 21 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 6e5fe75..26aa66a 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -371,9 +371,7 @@ TabContents::~TabContents() {
}
void TabContents::AddObservers() {
- favicon_helper_.reset(new FaviconHelper(this, FaviconHelper::FAVICON));
- if (browser_defaults::kEnableTouchIcon)
- touch_icon_helper_.reset(new FaviconHelper(this, FaviconHelper::TOUCH));
+ favicon_helper_.reset(new FaviconHelper(this));
plugin_observer_.reset(new PluginObserver(this));
safebrowsing_detection_host_.reset(new safe_browsing::ClientSideDetectionHost(
this));
@@ -412,7 +410,6 @@ bool TabContents::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset)
IPC_MESSAGE_HANDLER(ViewHostMsg_PageContents, OnPageContents)
IPC_MESSAGE_HANDLER(ViewHostMsg_PageTranslated, OnPageTranslated)
- IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
@@ -1537,9 +1534,6 @@ void TabContents::DidNavigateMainFramePostCommit(
// Get the favicon, either from history or request it from the net.
favicon_helper_->FetchFavicon(details.entry->url());
- if (touch_icon_helper_.get())
- touch_icon_helper_->FetchFavicon(details.entry->url());
-
// Clear all page actions, blocked content notifications and browser actions
// for this tab, unless this is an in-page navigation.
if (!details.is_in_page) {
@@ -2411,14 +2405,6 @@ void TabContents::RequestDesktopNotificationPermission(
render_view_host()->routing_id(), callback_context, this);
}
-void TabContents::OnUpdateFaviconURL(
- int32 page_id,
- const std::vector<FaviconURL>& candidates) {
- favicon_helper().OnUpdateFaviconURL(page_id, candidates);
- if (touch_icon_helper_.get())
- touch_icon_helper_->OnUpdateFaviconURL(page_id, candidates);
-}
-
void TabContents::BeforeUnloadFiredFromRenderManager(
bool proceed,
bool* proceed_to_fire_unload) {
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h
index a242b7d..aea147e 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -883,8 +883,6 @@ class TabContents : public PageNavigator,
virtual void RequestDesktopNotificationPermission(const GURL& source_origin,
int callback_context);
- void OnUpdateFaviconURL(int32 page_id,
- const std::vector<FaviconURL>& candidates);
// RenderViewHostManager::Delegate -------------------------------------------
// Blocks/unblocks interaction with renderer process.
@@ -964,10 +962,6 @@ class TabContents : public PageNavigator,
// Handles downloading favicons.
scoped_ptr<FaviconHelper> favicon_helper_;
- // Handles downloading touchicons. It is NULL if
- // browser_defaults::kEnableTouchIcon is false.
- scoped_ptr<FaviconHelper> touch_icon_helper_;
-
// RenderViewHost::ContentSettingsDelegate.
scoped_ptr<TabSpecificContentSettings> content_settings_delegate_;