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

Side by Side Diff: chrome/browser/chrome_browser_main_posix.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_browser_main_x11.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chrome_browser_main_posix.h" 5 #include "chrome/browser/chrome_browser_main_posix.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <limits.h> 8 #include <limits.h>
9 #include <signal.h> 9 #include <signal.h>
10 #include <sys/resource.h> 10 #include <sys/resource.h>
11 #include <unistd.h> 11 #include <unistd.h>
12 12
13 #include <string> 13 #include <string>
14 14
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/eintr_wrapper.h" 17 #include "base/eintr_wrapper.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/string_number_conversions.h" 19 #include "base/string_number_conversions.h"
20 #include "chrome/browser/ui/browser_list.h" 20 #include "chrome/browser/ui/browser_list.h"
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
22 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
23 23
24 #if defined(TOOLKIT_USES_GTK) && !defined(OS_CHROMEOS) 24 #if defined(TOOLKIT_USES_GTK) && !defined(OS_CHROMEOS)
25 #include "chrome/browser/printing/print_dialog_gtk.h" 25 #include "chrome/browser/printing/print_dialog_gtk.h"
26 #endif 26 #endif
27 27
28 using content::BrowserThread;
29
28 namespace { 30 namespace {
29 31
30 // See comment in |PreEarlyInitialization()|, where sigaction is called. 32 // See comment in |PreEarlyInitialization()|, where sigaction is called.
31 void SIGCHLDHandler(int signal) { 33 void SIGCHLDHandler(int signal) {
32 } 34 }
33 35
34 int g_shutdown_pipe_write_fd = -1; 36 int g_shutdown_pipe_write_fd = -1;
35 int g_shutdown_pipe_read_fd = -1; 37 int g_shutdown_pipe_read_fd = -1;
36 38
37 // Common code between SIG{HUP, INT, TERM}Handler. 39 // Common code between SIG{HUP, INT, TERM}Handler.
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 // And SIGHUP, for when the terminal disappears. On shutdown, many Linux 256 // And SIGHUP, for when the terminal disappears. On shutdown, many Linux
255 // distros send SIGHUP, SIGTERM, and then SIGKILL. 257 // distros send SIGHUP, SIGTERM, and then SIGKILL.
256 action.sa_handler = SIGHUPHandler; 258 action.sa_handler = SIGHUPHandler;
257 CHECK(sigaction(SIGHUP, &action, NULL) == 0); 259 CHECK(sigaction(SIGHUP, &action, NULL) == 0);
258 260
259 #if defined(TOOLKIT_USES_GTK) && !defined(OS_CHROMEOS) 261 #if defined(TOOLKIT_USES_GTK) && !defined(OS_CHROMEOS)
260 printing::PrintingContextCairo::SetCreatePrintDialogFunction( 262 printing::PrintingContextCairo::SetCreatePrintDialogFunction(
261 &PrintDialogGtk::CreatePrintDialog); 263 &PrintDialogGtk::CreatePrintDialog);
262 #endif 264 #endif
263 } 265 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_browser_main_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698