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

Unified Diff: chrome/app/chrome_main.cc

Issue 7863024: Make the NaCl windows 64 bit binaries not depend on chrome targets. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify chrome_exe.gypi Created 9 years, 3 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/app/chrome_exe_main_win.cc ('k') | chrome/app/client_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main.cc
===================================================================
--- chrome/app/chrome_main.cc (revision 100721)
+++ chrome/app/chrome_main.cc (working copy)
@@ -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 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 @@
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 @@
#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
};
« no previous file with comments | « chrome/app/chrome_exe_main_win.cc ('k') | chrome/app/client_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698