summaryrefslogtreecommitdiffstats
path: root/chrome/test/in_process_browser_test.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 21:53:03 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 21:53:03 +0000
commitbad6ba908752e520d0613bfe912d87edb1308d2e (patch)
tree51ca22902cac2da87a88833b9c050a5f63ab537a /chrome/test/in_process_browser_test.cc
parent73404fdaa6f3ba6e63c56566061c5699336280a5 (diff)
downloadchromium_src-bad6ba908752e520d0613bfe912d87edb1308d2e.zip
chromium_src-bad6ba908752e520d0613bfe912d87edb1308d2e.tar.gz
chromium_src-bad6ba908752e520d0613bfe912d87edb1308d2e.tar.bz2
Reverting my change it breaks release compilation on Windows.
TBR=maruel Review URL: http://codereview.chromium.org/103001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/in_process_browser_test.cc')
-rw-r--r--chrome/test/in_process_browser_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
index 4c68f57..1b454a3 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -44,6 +44,15 @@ bool DieFileDie(const std::wstring& file, bool recurse) {
return false;
}
+class ShadowingAtExitManager : public base::AtExitManager {
+ public:
+ ShadowingAtExitManager() : base::AtExitManager(true) {}
+ virtual ~ShadowingAtExitManager() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShadowingAtExitManager);
+};
+
} // namespace
InProcessBrowserTest::InProcessBrowserTest()
@@ -55,6 +64,8 @@ InProcessBrowserTest::InProcessBrowserTest()
}
void InProcessBrowserTest::SetUp() {
+ ShadowingAtExitManager at_exit_manager;
+
// Cleanup the user data dir.
std::wstring user_data_dir;
PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);