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

Side by Side Diff: chrome/app/chrome_exe_main.mm

Issue 1460001: Don't strip main from the browser or helper app executables (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/app.saves ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The entry point for all Mac Chromium processes, including the outer app 5 // The entry point for all Mac Chromium processes, including the outer app
6 // bundle (browser) and helper app (renderer, plugin, and friends). 6 // bundle (browser) and helper app (renderer, plugin, and friends).
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 extern "C" { 10 extern "C" {
11 int ChromeMain(int argc, char** argv); 11 int ChromeMain(int argc, char** argv);
12 } 12 }
13 13
14 __attribute__((visibility("default")))
14 int main(int argc, char* argv[]) { 15 int main(int argc, char* argv[]) {
15 int rv = ChromeMain(argc, argv); 16 int rv = ChromeMain(argc, argv);
16 17
17 // exit, don't return from main, to avoid the apparent removal of main from 18 // exit, don't return from main, to avoid the apparent removal of main from
18 // stack backtraces under tail call optimization. 19 // stack backtraces under tail call optimization.
19 exit(rv); 20 exit(rv);
20 } 21 }
OLDNEW
« no previous file with comments | « chrome/app/app.saves ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698