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-02-25 02:02:46 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-25 02:02:46 +0000
commit1e187afa75fe66d8525651c1f395c40e8227844d (patch)
tree28a2f0ea9a7c27305af52e8382b471a321a9af8b /chrome/test/in_process_browser_test.cc
parent67a54912d23c2a0c87065e9a876971fda54edf70 (diff)
downloadchromium_src-1e187afa75fe66d8525651c1f395c40e8227844d.zip
chromium_src-1e187afa75fe66d8525651c1f395c40e8227844d.tar.gz
chromium_src-1e187afa75fe66d8525651c1f395c40e8227844d.tar.bz2
Reverting 10318.
Reverting again... Review URL: http://codereview.chromium.org/28106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/in_process_browser_test.cc')
-rw-r--r--chrome/test/in_process_browser_test.cc16
1 files changed, 2 insertions, 14 deletions
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
index aae695b..dd1f919 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -12,7 +12,6 @@
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/profile_manager.h"
-#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/views/frame/browser_view.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
@@ -44,10 +43,7 @@ bool DieFileDie(const std::wstring& file, bool recurse) {
} // namespace
-InProcessBrowserTest::InProcessBrowserTest()
- : browser_(NULL),
- show_window_(false),
- dom_automation_enabled_(false) {
+InProcessBrowserTest::InProcessBrowserTest() : browser_(NULL) {
}
void InProcessBrowserTest::SetUp() {
@@ -72,23 +68,15 @@ void InProcessBrowserTest::SetUp() {
CommandLine* command_line = CommandLine::ForCurrentProcessMutable();
// Hide windows on show.
- if (!command_line->HasSwitch(kUnitTestShowWindows) && !show_window_)
+ if (!command_line->HasSwitch(kUnitTestShowWindows))
BrowserView::SetShowState(SW_HIDE);
- if (dom_automation_enabled_)
- command_line->AppendSwitch(switches::kDomAutomationController);
-
command_line->AppendSwitchWithValue(switches::kUserDataDir, user_data_dir);
// For some reason the sandbox wasn't happy running in test mode. These
// tests aren't intended to test the sandbox, so we turn it off.
command_line->AppendSwitch(switches::kNoSandbox);
- // Single-process mode is not set in BrowserMain so it needs to be processed
- // explicitlty.
- if (command_line->HasSwitch(switches::kSingleProcess))
- RenderProcessHost::set_run_renderer_in_process(true);
-
// Explicitly set the path of the exe used for the renderer, otherwise it'll
// try to use unit_test.exe.
std::wstring renderer_path;