diff options
author | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 18:29:31 +0000 |
---|---|---|
committer | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 18:29:31 +0000 |
commit | 754e5bc23b758ef3444dd7383822563e46da8405 (patch) | |
tree | 7f0530663551ecb8006beaae67090d012dba80cf /chrome/app/chrome_dll_main.cc | |
parent | 3183a2edce65aeb5d6ebfddb3f9dc7593ad9db30 (diff) | |
download | chromium_src-754e5bc23b758ef3444dd7383822563e46da8405.zip chromium_src-754e5bc23b758ef3444dd7383822563e46da8405.tar.gz chromium_src-754e5bc23b758ef3444dd7383822563e46da8405.tar.bz2 |
Remove #ifdef's used to support split dlls. Since we don't support
split dlls for now, remove these dead conditional compilations.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_dll_main.cc')
-rw-r--r-- | chrome/app/chrome_dll_main.cc | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index 8461c2c..0294bd2 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -40,9 +40,7 @@ #include "base/stats_table.h" #include "base/string_util.h" #include "base/win_util.h" -#ifdef BROWSER_DLL #include "chrome/browser/render_process_host.h" -#endif #include "chrome/common/chrome_constants.h" #include "chrome/common/chrome_counters.h" #include "chrome/common/chrome_paths.h" @@ -114,7 +112,6 @@ void ChromeAssert(const std::string& str) { #pragma optimize("", on) -#if defined(RENDERER_DLL) || defined(PLUGIN_DLL) // Try to unload DLLs that malfunction with the sandboxed processes. static void EvictTroublesomeDlls() { const wchar_t* troublesome_dlls[] = { @@ -134,7 +131,6 @@ static void EvictTroublesomeDlls() { } } } -#endif // defined(RENDERER_DLL) || defined(PLUGIN_DLL) } // namespace @@ -219,7 +215,6 @@ DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, std::wstring process_type = parsed_command_line.GetSwitchValue(switches::kProcessType); -#if defined(RENDERER_DLL) || defined(PLUGIN_DLL) bool do_dll_eviction = false; // Checks if the sandbox is enabled in this process and initializes it if this @@ -233,7 +228,6 @@ DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, do_dll_eviction = true; } } -#endif // defined(RENDERER_DLL) || defined(PLUGIN_DLL) _Module.Init(NULL, instance); @@ -246,12 +240,10 @@ DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, if (!user_data_dir.empty()) PathService::Override(chrome::DIR_USER_DATA, user_data_dir); -#ifdef BROWSER_DLL bool single_process = parsed_command_line.HasSwitch(switches::kSingleProcess); if (single_process) RenderProcessHost::set_run_renderer_in_process(true); -#endif // BROWSER_DLL bool icu_result = icu_util::Initialize(); CHECK(icu_result); @@ -277,37 +269,23 @@ DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance, ResourceBundle::InitSharedInstance(std::wstring()); } -#if defined(RENDERER_DLL) || defined(PLUGIN_DLL) // Eviction of injected DLLs is done early enough that it is likely // to only cover DLLs injected by means of appInit_dlls registry key. if (do_dll_eviction) EvictTroublesomeDlls(); -#endif // defined(RENDERER_DLL) || defined(PLUGIN_DLL) startup_timer.Stop(); // End of Startup Time Measurement. int rv; - // This condition exist to simplify the #ifdef - if (0) { - -#ifdef RENDERER_DLL - } else if (process_type == switches::kRendererProcess) { + if (process_type == switches::kRendererProcess) { rv = RendererMain(parsed_command_line, show_command, target_services); -#endif // RENDERER_DLL - -#ifdef PLUGIN_DLL } else if (process_type == switches::kPluginProcess) { rv = PluginMain(parsed_command_line, show_command, target_services); -#endif // PLUGIN_DLL - -#ifdef BROWSER_DLL } else if (process_type.empty()) { int ole_result = OleInitialize(NULL); DCHECK(ole_result == S_OK); rv = BrowserMain(parsed_command_line, show_command, broker_services); OleUninitialize(); -#endif // BROWSER_DLL - } else { NOTREACHED() << "Unknown process type"; rv = -1; |