diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 00:35:02 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 00:35:02 +0000 |
commit | 58dca55cff5214cc413bd9acc0a78bdd3c14e0a7 (patch) | |
tree | d59b91ed98a1d19cda81480b97090070c505821a /chrome/test/testing_browser_process.h | |
parent | a7c9a1aa1e81d8fb3634ca9f88d25e142b1d1d43 (diff) | |
download | chromium_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/test/testing_browser_process.h')
-rw-r--r-- | chrome/test/testing_browser_process.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/testing_browser_process.h b/chrome/test/testing_browser_process.h index c42eb61..7e97e73 100644 --- a/chrome/test/testing_browser_process.h +++ b/chrome/test/testing_browser_process.h @@ -74,6 +74,10 @@ class TestingBrowserProcess : public BrowserProcess { return NULL; } + virtual ThumbnailGenerator* GetThumbnailGenerator() { + return NULL; + } + virtual sandbox::BrokerServices* broker_services() { return NULL; } |