diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-12 21:14:44 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-12 21:14:44 +0000 |
commit | 93156cecb487ad7f1d7e307618cd58bd6546da29 (patch) | |
tree | ab60b7a310d1f8b2abae34e0b7c7703cf4dd2ced /chrome/app/chrome_main.cc | |
parent | fd5633b12e0ed15c62e6e0001b52bd53b895299c (diff) | |
download | chromium_src-93156cecb487ad7f1d7e307618cd58bd6546da29.zip chromium_src-93156cecb487ad7f1d7e307618cd58bd6546da29.tar.gz chromium_src-93156cecb487ad7f1d7e307618cd58bd6546da29.tar.bz2 |
Make the NaCl windows 64 bit binaries not depend on chrome targets. These targets are very simple and used little code from chrome targets. However their dependency on chrome targets was problematic because a lot of code wasn't being built for 64 bit on Windows, and so there were a lot of "dummy" files being added with stub functions and code was also being compiled out in random places for NACL_WIN64.
I've made the NaCl 64 bit windows targets self contained. They do use a few files from common, but those files are self-contained. In the future, we could move these to be in the same 64 bit target as the constants from common. However that won't make a maintenance difference since someone could still introduce link dependencies to other files in common.
Additionally, since we're not using chrome code anymore, we can avoid having both nacl.exe and nacl.dll. nacl.exe is sufficient, and this saves 1.4MB of uncompresed binaries in the installer.
BUG=86322
Review URL: http://codereview.chromium.org/7863024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_main.cc')
-rw-r--r-- | chrome/app/chrome_main.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc index 0bedac4..8b69e3f 100644 --- a/chrome/app/chrome_main.cc +++ b/chrome/app/chrome_main.cc @@ -89,28 +89,21 @@ #include "chrome/app/breakpad_linux.h" #endif -#if !defined(NACL_WIN64) // We don't build the this code on win nacl64. base::LazyInstance<chrome::ChromeContentBrowserClient> g_chrome_content_browser_client(base::LINKER_INITIALIZED); base::LazyInstance<chrome::ChromeContentRendererClient> g_chrome_content_renderer_client(base::LINKER_INITIALIZED); base::LazyInstance<chrome::ChromeContentUtilityClient> g_chrome_content_utility_client(base::LINKER_INITIALIZED); -#endif // NACL_WIN64 - base::LazyInstance<chrome::ChromeContentPluginClient> g_chrome_content_plugin_client(base::LINKER_INITIALIZED); extern int RendererMain(const MainFunctionParams&); extern int NaClMain(const MainFunctionParams&); extern int ProfileImportMain(const MainFunctionParams&); -#if defined(_WIN64) -extern int NaClBrokerMain(const MainFunctionParams&); -#endif extern int ServiceProcessMain(const MainFunctionParams&); #if defined(OS_WIN) -// TODO(erikkay): isn't this already defined somewhere? #define DLLEXPORT __declspec(dllexport) // We use extern C for the prototype DLLEXPORT to avoid C++ name mangling. @@ -271,18 +264,14 @@ void EnableHeapProfiler(const CommandLine& command_line) { } void InitializeChromeContentRendererClient() { -#if !defined(NACL_WIN64) // We don't build the renderer code on win nacl64. content::GetContentClient()->set_renderer( &g_chrome_content_renderer_client.Get()); -#endif } void InitializeChromeContentClient(const std::string& process_type) { if (process_type.empty()) { -#if !defined(NACL_WIN64) // We don't build the this code on win nacl64. content::GetContentClient()->set_browser( &g_chrome_content_browser_client.Get()); -#endif } else if (process_type == switches::kPluginProcess) { content::GetContentClient()->set_plugin( &g_chrome_content_plugin_client.Get()); @@ -290,10 +279,8 @@ void InitializeChromeContentClient(const std::string& process_type) { process_type == switches::kExtensionProcess) { InitializeChromeContentRendererClient(); } else if (process_type == switches::kUtilityProcess) { -#if !defined(NACL_WIN64) // We don't build this code on win nacl64. content::GetContentClient()->set_utility( &g_chrome_content_utility_client.Get()); -#endif } } @@ -668,9 +655,6 @@ class ChromeMainDelegate : public content::ContentMainDelegate { #endif #if !defined(DISABLE_NACL) { switches::kNaClLoaderProcess, NaClMain }, -#if defined(_WIN64) // The broker process is used only on Win64. - { switches::kNaClBrokerProcess, NaClBrokerMain }, -#endif #endif // DISABLE_NACL }; |