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 <stddef.h> |
| 12 #include <string.h> |
11 #include <sys/resource.h> | 13 #include <sys/resource.h> |
12 #include <unistd.h> | 14 #include <unistd.h> |
13 | 15 |
14 #include <string> | 16 #include <string> |
15 | 17 |
16 #include "base/bind.h" | 18 #include "base/bind.h" |
17 #include "base/command_line.h" | 19 #include "base/command_line.h" |
18 #include "base/logging.h" | 20 #include "base/logging.h" |
| 21 #include "base/macros.h" |
19 #include "base/posix/eintr_wrapper.h" | 22 #include "base/posix/eintr_wrapper.h" |
20 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
| 24 #include "build/build_config.h" |
21 #include "chrome/browser/chrome_notification_types.h" | 25 #include "chrome/browser/chrome_notification_types.h" |
22 #include "chrome/browser/lifetime/application_lifetime.h" | 26 #include "chrome/browser/lifetime/application_lifetime.h" |
23 #include "chrome/browser/sessions/session_restore.h" | 27 #include "chrome/browser/sessions/session_restore.h" |
24 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
25 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
26 | 30 |
27 using content::BrowserThread; | 31 using content::BrowserThread; |
28 | 32 |
29 namespace { | 33 namespace { |
30 | 34 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // Not called on Mac because we load the locale files differently. | 320 // Not called on Mac because we load the locale files differently. |
317 NOTREACHED(); | 321 NOTREACHED(); |
318 #elif defined(USE_AURA) | 322 #elif defined(USE_AURA) |
319 // TODO(port): We may want a views based message dialog here eventually, but | 323 // TODO(port): We may want a views based message dialog here eventually, but |
320 // for now, crash. | 324 // for now, crash. |
321 NOTREACHED(); | 325 NOTREACHED(); |
322 #else | 326 #else |
323 #error "Need MessageBox implementation." | 327 #error "Need MessageBox implementation." |
324 #endif | 328 #endif |
325 } | 329 } |
OLD | NEW |