diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-02 22:57:02 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-02 22:57:02 +0000 |
commit | 54260fc80a2150e95646b15d12b2a415037dd028 (patch) | |
tree | 1a183d0d0de309f29264d49368d820ba91ff0f0e /chrome/browser/profile_manager_unittest.cc | |
parent | bcd0234ff7b8c0e8628663b45ca98f8be306e756 (diff) | |
download | chromium_src-54260fc80a2150e95646b15d12b2a415037dd028.zip chromium_src-54260fc80a2150e95646b15d12b2a415037dd028.tar.gz chromium_src-54260fc80a2150e95646b15d12b2a415037dd028.tar.bz2 |
Fix leaking ExtensionMessageService in ProfileManagerTest.
BUG=28824
TEST=tools/valgrind/chrome_tests.sh -t unit --gtest_filter=ProfileManagerTest.CreateProfile
Review URL: http://codereview.chromium.org/455031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile_manager_unittest.cc')
-rw-r--r-- | chrome/browser/profile_manager_unittest.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/profile_manager_unittest.cc b/chrome/browser/profile_manager_unittest.cc index e38e68f..bd9e4d2 100644 --- a/chrome/browser/profile_manager_unittest.cc +++ b/chrome/browser/profile_manager_unittest.cc @@ -14,6 +14,9 @@ class ProfileManagerTest : public testing::Test { protected: + ProfileManagerTest() : ui_thread_(ChromeThread::UI, &message_loop_) { + } + virtual void SetUp() { // Name a subdirectory of the temp directory. ASSERT_TRUE(PathService::Get(base::DIR_TEMP, &test_dir_)); @@ -30,6 +33,7 @@ class ProfileManagerTest : public testing::Test { } MessageLoopForUI message_loop_; + ChromeThread ui_thread_; // the path to temporary directory used to contain the test operations FilePath test_dir_; |