summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_shutdown.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 05:32:19 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 05:32:19 +0000
commit0b88baec73430cb25a4d6181b47c221f99fe5d0f (patch)
treec5a449884897b3b1f98eb9e66511d86c929700b5 /chrome/browser/browser_shutdown.h
parent31d9a1aedd6b5ee288face8603e6ab91d334c5e3 (diff)
downloadchromium_src-0b88baec73430cb25a4d6181b47c221f99fe5d0f.zip
chromium_src-0b88baec73430cb25a4d6181b47c221f99fe5d0f.tar.gz
chromium_src-0b88baec73430cb25a4d6181b47c221f99fe5d0f.tar.bz2
Adds a variable indicating whether resources should be deleted on
shutdown. Normally it's true, but I'm going to set it to false for in process ui tests. I can't delete the ResourceBundle for these tests as many classes cache SkBitmaps from the resource bundle in statics. BUG=none TEST=none Review URL: http://codereview.chromium.org/19609 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8795 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_shutdown.h')
-rw-r--r--chrome/browser/browser_shutdown.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser_shutdown.h b/chrome/browser/browser_shutdown.h
index 61c1287..0b7aa51 100644
--- a/chrome/browser/browser_shutdown.h
+++ b/chrome/browser/browser_shutdown.h
@@ -9,6 +9,10 @@ class PrefService;
namespace browser_shutdown {
+// Should Shutdown() delete the ResourceBundle? This is normally true, but set
+// to false for in process unit tests.
+extern bool delete_resources_on_shutdown;
+
enum ShutdownType {
// an uninitialized value
NOT_VALID = 0,