summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_exe_main.mm
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 15:20:33 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 15:20:33 +0000
commit4e3b4209abdd6037f7a2329d54b4578524810af2 (patch)
tree8cc8e5fbeec20b17c6d7072d652e72ace8e64eac /chrome/app/chrome_exe_main.mm
parentf1ac056488379b5f3221c658b32a1b783e87b9e9 (diff)
downloadchromium_src-4e3b4209abdd6037f7a2329d54b4578524810af2.zip
chromium_src-4e3b4209abdd6037f7a2329d54b4578524810af2.tar.gz
chromium_src-4e3b4209abdd6037f7a2329d54b4578524810af2.tar.bz2
bootstrap app target for browser/renderer.
Review URL: http://codereview.chromium.org/13202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_exe_main.mm')
-rw-r--r--chrome/app/chrome_exe_main.mm31
1 files changed, 31 insertions, 0 deletions
diff --git a/chrome/app/chrome_exe_main.mm b/chrome/app/chrome_exe_main.mm
new file mode 100644
index 0000000..1eed9a6
--- /dev/null
+++ b/chrome/app/chrome_exe_main.mm
@@ -0,0 +1,31 @@
+// Copyright (c) 2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include <Cocoa/Cocoa.h>
+
+#include "base/at_exit.h"
+#include "base/process_util.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 Omaha. We don't need
+// that extra layer with Keystone on the Mac, though we may run into issues
+// with Keychain prompts unless we sign the application. That shouldn't be
+// too hard, we just need infrastructure support to do it.
+
+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;
+
+ // TODO(pinkerton): init crash reporter
+
+ // 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);
+}