summaryrefslogtreecommitdiffstats
path: root/content/browser
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-27 03:34:40 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-27 03:34:40 +0000
commite82f366761fe478f9ba29179be26937a8a376e83 (patch)
treee08bf8001137ee9c8c119665d5d50dbe1c93050c /content/browser
parente92c3b506e165693e3407f89cdda6952c8212dc2 (diff)
downloadchromium_src-e82f366761fe478f9ba29179be26937a8a376e83.zip
chromium_src-e82f366761fe478f9ba29179be26937a8a376e83.tar.gz
chromium_src-e82f366761fe478f9ba29179be26937a8a376e83.tar.bz2
Create a ThumbnailGenerator for each tab instead of using the global instance.
This way, we can get rid of the property bag hack that relies on some internals of how TabContents and RenderViewHost work. BUG=65936 TEST=in-browser thumbnailing worked as before Review URL: http://codereview.chromium.org/6878039 Patch from Satoru Takabayashi <satorux@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r--content/browser/tab_contents/tab_contents.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index 7c113a3..6c72691 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -47,7 +47,6 @@
#include "chrome/browser/sessions/session_types.h"
#include "chrome/browser/tab_contents/infobar_delegate.h"
#include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
-#include "chrome/browser/tab_contents/thumbnail_generator.h"
#include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/common/chrome_constants.h"
@@ -258,14 +257,6 @@ TabContents::TabContents(Profile* profile,
content_settings_delegate_.reset(
new TabSpecificContentSettings(this, profile));
- // Start the in-browser thumbnailing if the feature is enabled.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableInBrowserThumbnailing)) {
- ThumbnailGenerator* generator = g_browser_process->GetThumbnailGenerator();
- if (generator)
- generator->StartThumbnailing();
- }
-
render_manager_.Init(profile, site_instance, routing_id);
// We have the initial size of the view be based on the size of the passed in