| 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/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> |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // Also handle SIGINT - when the user terminates the browser via Ctrl+C. If | 250 // Also handle SIGINT - when the user terminates the browser via Ctrl+C. If |
| 251 // the browser process is being debugged, GDB will catch the SIGINT first. | 251 // the browser process is being debugged, GDB will catch the SIGINT first. |
| 252 action.sa_handler = SIGINTHandler; | 252 action.sa_handler = SIGINTHandler; |
| 253 CHECK(sigaction(SIGINT, &action, NULL) == 0); | 253 CHECK(sigaction(SIGINT, &action, NULL) == 0); |
| 254 // And SIGHUP, for when the terminal disappears. On shutdown, many Linux | 254 // And SIGHUP, for when the terminal disappears. On shutdown, many Linux |
| 255 // distros send SIGHUP, SIGTERM, and then SIGKILL. | 255 // distros send SIGHUP, SIGTERM, and then SIGKILL. |
| 256 action.sa_handler = SIGHUPHandler; | 256 action.sa_handler = SIGHUPHandler; |
| 257 CHECK(sigaction(SIGHUP, &action, NULL) == 0); | 257 CHECK(sigaction(SIGHUP, &action, NULL) == 0); |
| 258 | 258 |
| 259 #if defined(TOOLKIT_USES_GTK) && !defined(OS_CHROMEOS) | 259 #if defined(TOOLKIT_USES_GTK) && !defined(OS_CHROMEOS) |
| 260 printing::PrintingContextCairo::SetCreatePrintDialogFunction( | 260 printing::PrintingContextGtk::SetCreatePrintDialogFunction( |
| 261 &PrintDialogGtk::CreatePrintDialog); | 261 &PrintDialogGtk::CreatePrintDialog); |
| 262 #endif | 262 #endif |
| 263 } | 263 } |
| OLD | NEW |