#include "build/build_config.h"// The entry point for all invocations of Chromium, browser and renderer. On// windows, this does nothing but load chrome.dll and invoke its entry point in// order to make it easy to update the app from GoogleUpdate. We don't need// that extra layer with on linux.extern"C"{intChromeMain(intargc,constchar**argv);}intmain(intargc,constchar**argv){returnChromeMain(argc,argv);}
#include "chrome/app/chrome_main_delegate.h"#include "content/public/app/content_main.h"#if defined(OS_WIN)#define DLLEXPORT __declspec(dllexport)// We use extern C for the prototype DLLEXPORT to avoid C++ name mangling.extern"C"{DLLEXPORTint__cdeclChromeMain(HINSTANCEinstance,sandbox::SandboxInterfaceInfo*sandbox_info);}#elif defined(OS_POSIX)extern"C"{__attribute__((visibility("default")))intChromeMain(intargc,constchar**argv);}#endif#if defined(OS_WIN)DLLEXPORTint__cdeclChromeMain(HINSTANCEinstance,sandbox::SandboxInterfaceInfo*sandbox_info){ChromeMainDelegatechrome_main_delegate;returncontent::ContentMain(instance,sandbox_info,&chrome_main_delegate);#elif defined(OS_POSIX)intChromeMain(intargc,constchar**argv){ChromeMainDelegatechrome_main_delegate;returncontent::ContentMain(argc,argv,&chrome_main_delegate);#endif}