summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main_mac.mm
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 21:20:16 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 21:20:16 +0000
commit5c9587c69c6fc62164b35b24c92603935fb5dd2a (patch)
tree368ac11051119ff0e978c8ce9ee9fb7c8a8930e7 /chrome/browser/browser_main_mac.mm
parentf52e5878b3bbf830b611d1d4d1e3d369b36f38d6 (diff)
downloadchromium_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/browser/browser_main_mac.mm')
-rw-r--r--chrome/browser/browser_main_mac.mm11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/browser_main_mac.mm b/chrome/browser/browser_main_mac.mm
new file mode 100644
index 0000000..c6c4381
--- /dev/null
+++ b/chrome/browser/browser_main_mac.mm
@@ -0,0 +1,11 @@
+// Copyright (c) 2006-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/command_line.h"
+#include <crt_externs.h>
+
+int StartPlatformMessageLoop() {
+ return NSApplicationMain(*_NSGetArgc(), (const char**)*_NSGetArgv());
+}