OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <pthread.h> | 9 #include <pthread.h> |
10 #include <signal.h> | 10 #include <signal.h> |
11 #include <sys/resource.h> | 11 #include <sys/resource.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/posix/eintr_wrapper.h" | 19 #include "base/posix/eintr_wrapper.h" |
20 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
| 21 #include "chrome/browser/chrome_notification_types.h" |
21 #include "chrome/browser/lifetime/application_lifetime.h" | 22 #include "chrome/browser/lifetime/application_lifetime.h" |
22 #include "chrome/browser/sessions/session_restore.h" | 23 #include "chrome/browser/sessions/session_restore.h" |
23 #include "chrome/common/chrome_notification_types.h" | |
24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/browser/notification_observer.h" | 26 #include "content/public/browser/notification_observer.h" |
27 #include "content/public/browser/notification_registrar.h" | 27 #include "content/public/browser/notification_registrar.h" |
28 #include "content/public/browser/notification_service.h" | 28 #include "content/public/browser/notification_service.h" |
29 | 29 |
30 #if defined(TOOLKIT_GTK) | 30 #if defined(TOOLKIT_GTK) |
31 #include "chrome/browser/printing/print_dialog_gtk.h" | 31 #include "chrome/browser/printing/print_dialog_gtk.h" |
32 #include "chrome/browser/ui/gtk/chrome_browser_main_extra_parts_gtk.h" | 32 #include "chrome/browser/ui/gtk/chrome_browser_main_extra_parts_gtk.h" |
33 #endif | 33 #endif |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 ChromeBrowserMainExtraPartsGtk::ShowMessageBox( | 364 ChromeBrowserMainExtraPartsGtk::ShowMessageBox( |
365 chrome_browser::kMissingLocaleDataMessage); | 365 chrome_browser::kMissingLocaleDataMessage); |
366 #elif defined(USE_AURA) | 366 #elif defined(USE_AURA) |
367 // TODO(port): We may want a views based message dialog here eventually, but | 367 // TODO(port): We may want a views based message dialog here eventually, but |
368 // for now, crash. | 368 // for now, crash. |
369 NOTREACHED(); | 369 NOTREACHED(); |
370 #else | 370 #else |
371 #error "Need MessageBox implementation." | 371 #error "Need MessageBox implementation." |
372 #endif | 372 #endif |
373 } | 373 } |
OLD | NEW |