summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile_manager_unittest.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 00:09:09 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-03 00:09:09 +0000
commitcb0e4f1f02ae2cf57771849448459a284ecfc193 (patch)
treeca21406ac3f540c38deb7787db13a4803c4cd1d6 /chrome/browser/profile_manager_unittest.cc
parent964a1cec1ccccea7c31e467f0fff63fc9d7edb31 (diff)
downloadchromium_src-cb0e4f1f02ae2cf57771849448459a284ecfc193.zip
chromium_src-cb0e4f1f02ae2cf57771849448459a284ecfc193.tar.gz
chromium_src-cb0e4f1f02ae2cf57771849448459a284ecfc193.tar.bz2
Fix leaking ExtensionMessageService in ProfileManagerTest.
BUG=28824 TEST=tools/valgrind/chrome_tests.sh -t unit --gtest_filter=ProfileManagerTest.CreateProfile Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33611 Review URL: http://codereview.chromium.org/455031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile_manager_unittest.cc')
-rw-r--r--chrome/browser/profile_manager_unittest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/profile_manager_unittest.cc b/chrome/browser/profile_manager_unittest.cc
index e38e68f..02813a6 100644
--- a/chrome/browser/profile_manager_unittest.cc
+++ b/chrome/browser/profile_manager_unittest.cc
@@ -5,6 +5,7 @@
#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/path_service.h"
+#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/common/chrome_paths.h"
@@ -14,6 +15,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 +34,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_;