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

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

Issue 49009: Proxy config for Linux (ProxyConfigServiceLinux)... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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
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 <glib.h>
6 #include <gtk/gtk.h>
7 #include <gdk/gdk.h>
8 #include <glib-object.h>
5 #include "base/at_exit.h" 9 #include "base/at_exit.h"
6 #include "base/process_util.h" 10 #include "base/process_util.h"
7 11
8 // The entry point for all invocations of Chromium, browser and renderer. On 12 // The entry point for all invocations of Chromium, browser and renderer. On
9 // windows, this does nothing but load chrome.dll and invoke its entry point in 13 // windows, this does nothing but load chrome.dll and invoke its entry point in
10 // order to make it easy to update the app from GoogleUpdate. We don't need 14 // order to make it easy to update the app from GoogleUpdate. We don't need
11 // that extra layer with on linux. 15 // that extra layer with on linux.
12 // 16 //
13 // TODO(tc): This is similar to chrome_exe_main.mm. After it's more clear what 17 // TODO(tc): This is similar to chrome_exe_main.mm. After it's more clear what
14 // needs to go here, we should evaluate whether or not to merge this file with 18 // needs to go here, we should evaluate whether or not to merge this file with
15 // chrome_exe_main.mm. 19 // chrome_exe_main.mm.
16 20
17 extern "C" { 21 extern "C" {
18 int ChromeMain(int argc, const char** argv); 22 int ChromeMain(int argc, const char** argv);
19 } 23 }
20 24
21 int main(int argc, const char** argv) { 25 int main(int argc, const char** argv) {
22 base::EnableTerminationOnHeapCorruption(); 26 base::EnableTerminationOnHeapCorruption();
23 27
24 // The exit manager is in charge of calling the dtors of singletons. 28 // The exit manager is in charge of calling the dtors of singletons.
25 // Win has one here, but we assert with multiples from BrowserMain() if we 29 // Win has one here, but we assert with multiples from BrowserMain() if we
26 // keep it. 30 // keep it.
27 // base::AtExitManager exit_manager; 31 // base::AtExitManager exit_manager;
28 32
29 #if defined(GOOGLE_CHROME_BUILD) 33 #if defined(GOOGLE_CHROME_BUILD)
30 // TODO(tc): init crash reporter 34 // TODO(tc): init crash reporter
31 #endif 35 #endif
36 g_type_init();
37 g_thread_init(NULL);
38 gdk_threads_init();
32 39
33 return ChromeMain(argc, argv); 40 return ChromeMain(argc, argv);
34 } 41 }
OLDNEW
« no previous file with comments | « build/SConscript.main ('k') | net/net_lib.scons » ('j') | net/proxy/proxy_config_service_linux.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698