diff options
author | newt <newt@chromium.org> | 2015-11-16 10:41:24 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-16 18:42:25 +0000 |
commit | 7667919ffe348076170277d8f2152644af0943c5 (patch) | |
tree | e64a1996fdd2e3ba50af02f76689af4755e14e93 | |
parent | 47224f607937aa161384dc05d5fa52ca091f29db (diff) | |
download | chromium_src-7667919ffe348076170277d8f2152644af0943c5.zip chromium_src-7667919ffe348076170277d8f2152644af0943c5.tar.gz chromium_src-7667919ffe348076170277d8f2152644af0943c5.tar.bz2 |
Remove unused set_enabled() method in ThumbnailTabHelper.
This is no longer used as of https://codereview.chromium.org/1432603005
Review URL: https://codereview.chromium.org/1419823016
Cr-Commit-Position: refs/heads/master@{#359873}
-rw-r--r-- | chrome/browser/thumbnails/thumbnail_tab_helper.cc | 3 | ||||
-rw-r--r-- | chrome/browser/thumbnails/thumbnail_tab_helper.h | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/chrome/browser/thumbnails/thumbnail_tab_helper.cc b/chrome/browser/thumbnails/thumbnail_tab_helper.cc index ec042d8..20d6cf0 100644 --- a/chrome/browser/thumbnails/thumbnail_tab_helper.cc +++ b/chrome/browser/thumbnails/thumbnail_tab_helper.cc @@ -126,7 +126,6 @@ void AsyncProcessThumbnail(scoped_refptr<ThumbnailingContext> context, ThumbnailTabHelper::ThumbnailTabHelper(content::WebContents* contents) : content::WebContentsObserver(contents), - enabled_(true), load_interrupted_(false) { // Even though we deal in RenderWidgetHosts, we only care about its // subclass, RenderViewHost when it is in a tab. We don't make thumbnails @@ -229,7 +228,5 @@ void ThumbnailTabHelper::RenderViewHostCreated( } void ThumbnailTabHelper::WidgetHidden(RenderWidgetHost* widget) { - if (!enabled_) - return; UpdateThumbnailIfNecessary(web_contents()); } diff --git a/chrome/browser/thumbnails/thumbnail_tab_helper.h b/chrome/browser/thumbnails/thumbnail_tab_helper.h index 8e97064..ae13bbb 100644 --- a/chrome/browser/thumbnails/thumbnail_tab_helper.h +++ b/chrome/browser/thumbnails/thumbnail_tab_helper.h @@ -25,11 +25,6 @@ class ThumbnailTabHelper public: ~ThumbnailTabHelper() override; - // Enables or disables the function of taking thumbnails. - // A disabled ThumbnailTabHelper generates no thumbnails although it still - // continues to receive the notifications from the web contents. - void set_enabled(bool enabled) { enabled_ = enabled; } - private: explicit ThumbnailTabHelper(content::WebContents* contents); friend class content::WebContentsUserData<ThumbnailTabHelper>; @@ -53,8 +48,6 @@ class ThumbnailTabHelper // Indicates that the given widget has changed is visibility. void WidgetHidden(content::RenderWidgetHost* widget); - bool enabled_; - content::NotificationRegistrar registrar_; bool load_interrupted_; |