| OLD | NEW |
| 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/browser_main_posix.h" | 5 #include "chrome/browser/browser_main_posix.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <signal.h> | 8 #include <signal.h> |
| 9 #include <sys/resource.h> | 9 #include <sys/resource.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/eintr_wrapper.h" | 14 #include "base/eintr_wrapper.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
| 17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
| 18 #include "chrome/browser/browser_list.h" | 18 #include "chrome/browser/browser_list.h" |
| 19 #include "chrome/browser/browser_thread.h" | |
| 20 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 20 #include "content/browser/browser_thread.h" |
| 21 | 21 |
| 22 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 22 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 23 #include "chrome/browser/printing/print_dialog_gtk.h" | 23 #include "chrome/browser/printing/print_dialog_gtk.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 // See comment in |PreEarlyInitialization()|, where sigaction is called. | 28 // See comment in |PreEarlyInitialization()|, where sigaction is called. |
| 29 void SIGCHLDHandler(int signal) { | 29 void SIGCHLDHandler(int signal) { |
| 30 } | 30 } |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 LOG(DFATAL) << "Failed to create shutdown detector task."; | 224 LOG(DFATAL) << "Failed to create shutdown detector task."; |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 | 227 |
| 228 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 228 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 229 printing::PrintingContextCairo::SetPrintingFunctions( | 229 printing::PrintingContextCairo::SetPrintingFunctions( |
| 230 &PrintDialogGtk::CreatePrintDialog, | 230 &PrintDialogGtk::CreatePrintDialog, |
| 231 &PrintDialogGtk::PrintDocument); | 231 &PrintDialogGtk::PrintDocument); |
| 232 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) | 232 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 233 } | 233 } |
| OLD | NEW |