summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_process.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 00:35:02 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-17 00:35:02 +0000
commit58dca55cff5214cc413bd9acc0a78bdd3c14e0a7 (patch)
treed59b91ed98a1d19cda81480b97090070c505821a /chrome/browser/browser_process.h
parenta7c9a1aa1e81d8fb3634ca9f88d25e142b1d1d43 (diff)
downloadchromium_src-58dca55cff5214cc413bd9acc0a78bdd3c14e0a7.zip
chromium_src-58dca55cff5214cc413bd9acc0a78bdd3c14e0a7.tar.gz
chromium_src-58dca55cff5214cc413bd9acc0a78bdd3c14e0a7.tar.bz2
Fix a crash when the ThumbnailGenerator.
This happens when the ThumbnailGenerator is initialized because the NotificationService doesn't exist yet. This patch adds a function that TabContentscalls to make sure it is registered to avoid this problem. Review URL: http://codereview.chromium.org/126239 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process.h')
-rw-r--r--chrome/browser/browser_process.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/browser_process.h b/chrome/browser/browser_process.h
index 86cee4e..656b1ff 100644
--- a/chrome/browser/browser_process.h
+++ b/chrome/browser/browser_process.h
@@ -26,8 +26,9 @@ class PrefService;
class ProfileManager;
class DebuggerWrapper;
class ResourceDispatcherHost;
-class WebAppInstallerService;
class SuspendController;
+class ThumbnailGenerator;
+class WebAppInstallerService;
namespace base {
class Thread;
@@ -109,6 +110,8 @@ class BrowserProcess {
virtual IconManager* icon_manager() = 0;
+ virtual ThumbnailGenerator* GetThumbnailGenerator() = 0;
+
virtual void InitBrokerServices(sandbox::BrokerServices*) = 0;
virtual AutomationProviderList* InitAutomationProviderList() = 0;