diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 02:18:23 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-12 02:18:23 +0000 |
commit | 640a7ba34abc2d48327034138d5f675378d33fb9 (patch) | |
tree | abe92c7b5d96f4c77ce1a90ca57a70ebc25c348c /chrome/test | |
parent | 0e140cfe54405625ae8af1fc540a9bf8965616e6 (diff) | |
download | chromium_src-640a7ba34abc2d48327034138d5f675378d33fb9.zip chromium_src-640a7ba34abc2d48327034138d5f675378d33fb9.tar.gz chromium_src-640a7ba34abc2d48327034138d5f675378d33fb9.tar.bz2 |
startup: move some browser startup code into BrowserMain
There was a block of code that was #ifdef LINUX right before
our call to BrowserMain(). We can instead put that code into
BrowserMain(), which knows how to delegate to multiple platforms.
TEST=should be just a refactoring change, all tests should still pass
Review URL: http://codereview.chromium.org/4579002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/in_process_browser_test.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc index a0bcaea..cd6669f 100644 --- a/chrome/test/in_process_browser_test.cc +++ b/chrome/test/in_process_browser_test.cc @@ -47,29 +47,6 @@ #include "chrome/browser/views/frame/browser_view.h" #endif -#if defined(OS_LINUX) -#include "base/environment.h" -#include "base/singleton.h" -#include "chrome/browser/renderer_host/render_sandbox_host_linux.h" -#include "chrome/browser/zygote_host_linux.h" - -namespace { - -// A helper class to do Linux-only initialization only once per process. -class LinuxHostInit { - public: - LinuxHostInit() { - RenderSandboxHostLinux* shost = Singleton<RenderSandboxHostLinux>::get(); - shost->Init(""); - ZygoteHost* zhost = Singleton<ZygoteHost>::get(); - zhost->Init(""); - } - ~LinuxHostInit() {} -}; - -} // namespace -#endif - #if defined(OS_CHROMEOS) #include "chrome/browser/chromeos/cros/cros_library.h" #endif // defined(OS_CHROMEOS) @@ -243,12 +220,6 @@ void InProcessBrowserTest::SetUp() { #endif CHECK(PathService::Override(base::FILE_EXE, chrome_path)); -#if defined(OS_LINUX) - // Initialize the RenderSandbox and Zygote hosts. Apparently they get used - // for InProcessBrowserTest, and this is not the normal browser startup path. - Singleton<LinuxHostInit>::get(); -#endif - BrowserMain(params); TearDownInProcessBrowserTestFixture(); } |