diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 21:20:16 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-09 21:20:16 +0000 |
commit | 5c9587c69c6fc62164b35b24c92603935fb5dd2a (patch) | |
tree | 368ac11051119ff0e978c8ce9ee9fb7c8a8930e7 /chrome/app/chrome_exe_main.mm | |
parent | f52e5878b3bbf830b611d1d4d1e3d369b36f38d6 (diff) | |
download | chromium_src-5c9587c69c6fc62164b35b24c92603935fb5dd2a.zip chromium_src-5c9587c69c6fc62164b35b24c92603935fb5dd2a.tar.gz chromium_src-5c9587c69c6fc62164b35b24c92603935fb5dd2a.tar.bz2 |
step one of some refactoring to allow other platforms to re-use the app initialization code.
Review URL: http://codereview.chromium.org/13295
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6627 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_exe_main.mm')
-rw-r--r-- | chrome/app/chrome_exe_main.mm | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/chrome/app/chrome_exe_main.mm b/chrome/app/chrome_exe_main.mm index 1eed9a6..3c9381f 100644 --- a/chrome/app/chrome_exe_main.mm +++ b/chrome/app/chrome_exe_main.mm @@ -14,18 +14,21 @@ // with Keychain prompts unless we sign the application. That shouldn't be // too hard, we just need infrastructure support to do it. +extern "C" { +int ChromeMain(int argc, const char** argv); +} + int main(int argc, const char** argv) { base::EnableTerminationOnHeapCorruption(); // The exit manager is in charge of calling the dtors of singletons. - base::AtExitManager exit_manager; + // Win has one here, but we assert with multiples from BrowserMain() if we + // keep it. + // base::AtExitManager exit_manager; +#if defined(GOOGLE_CHROME_BUILD) // TODO(pinkerton): init crash reporter +#endif - // TODO(pinkerton): factor out chrome_dll_main so we can call ChromeMain - // to determine if we're a browser or a renderer. To bootstrap, assume we're - // a browser. There's actually very little in chrome_exe_main.cc that's - // worth saving, it's almost entirely windows-specific. - - return NSApplicationMain(argc, argv); + return ChromeMain(argc, argv); } |