Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(808)

Unified Diff: chrome/test/base/chrome_test_suite.cc

Issue 7601006: GTTF: Use a fresh TestingBrowserProcess for each test, part #5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_test_suite.cc
===================================================================
--- chrome/test/base/chrome_test_suite.cc (revision 96265)
+++ chrome/test/base/chrome_test_suite.cc (working copy)
@@ -110,7 +110,11 @@
chrome::RegisterPathProvider();
content::RegisterPathProvider();
ui::RegisterPathProvider();
+
+#if !defined(OS_WIN)
+ // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
g_browser_process = new TestingBrowserProcess;
+#endif
if (!browser_dir_.empty()) {
PathService::Override(base::DIR_EXE, browser_dir_);
@@ -156,8 +160,11 @@
base::mac::SetOverrideAppBundle(NULL);
#endif
+#if !defined(OS_WIN)
+ // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
delete g_browser_process;
g_browser_process = NULL;
+#endif
// Tear down shared StatsTable; prevents unit_tests from leaking it.
base::StatsTable::set_current(NULL);
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698