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

Side by Side Diff: chrome/app/chrome_exe_main_gtk.cc

Issue 4451001: chrome_exe_main: name os-specific files according to naming pattern (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Created 10 years, 1 month 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/chrome_dll_main.cc ('k') | chrome/app/chrome_exe_main_mac.mm » ('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) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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 #include "base/process_util.h" 5 #include "base/process_util.h"
6 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 6 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
7 #include "chrome/browser/first_run/first_run.h" 7 #include "chrome/browser/first_run/first_run.h"
8 #endif 8 #endif
9 9
10 // The entry point for all invocations of Chromium, browser and renderer. On 10 // The entry point for all invocations of Chromium, browser and renderer. On
11 // windows, this does nothing but load chrome.dll and invoke its entry point in 11 // windows, this does nothing but load chrome.dll and invoke its entry point in
12 // order to make it easy to update the app from GoogleUpdate. We don't need 12 // order to make it easy to update the app from GoogleUpdate. We don't need
13 // that extra layer with on linux. 13 // that extra layer with on linux.
14 // 14 //
15 // TODO(tc): This is similar to chrome_exe_main.mm. After it's more clear what 15 // TODO(tc): This is similar to chrome_exe_main_mac.mm. After it's
16 // needs to go here, we should evaluate whether or not to merge this file with 16 // more clear what needs to go here, we should evaluate whether or not
17 // chrome_exe_main.mm. 17 // to merge this file with chrome_exe_main_mac.mm.
18 18
19 extern "C" { 19 extern "C" {
20 int ChromeMain(int argc, const char** argv); 20 int ChromeMain(int argc, const char** argv);
21 21
22 #if defined(OS_LINUX) && defined(USE_TCMALLOC) 22 #if defined(OS_LINUX) && defined(USE_TCMALLOC)
23 23
24 int tc_set_new_mode(int mode); 24 int tc_set_new_mode(int mode);
25 25
26 #endif // defined(OS_LINUX) && defined(USE_TCMALLOC) 26 #endif // defined(OS_LINUX) && defined(USE_TCMALLOC)
27 } 27 }
(...skipping 21 matching lines...) Expand all
49 int return_code = ChromeMain(argc, argv); 49 int return_code = ChromeMain(argc, argv);
50 50
51 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 51 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
52 // Launch a new instance if we're shutting down because we detected an 52 // Launch a new instance if we're shutting down because we detected an
53 // upgrade in the persistent mode. 53 // upgrade in the persistent mode.
54 Upgrade::RelaunchChromeBrowserWithNewCommandLineIfNeeded(); 54 Upgrade::RelaunchChromeBrowserWithNewCommandLineIfNeeded();
55 #endif 55 #endif
56 56
57 return return_code; 57 return return_code;
58 } 58 }
OLDNEW
« no previous file with comments | « chrome/app/chrome_dll_main.cc ('k') | chrome/app/chrome_exe_main_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698