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/app/chrome_main.h" | 5 #include "chrome/app/chrome_main.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 | 8 |
9 #include "base/global_descriptors_posix.h" | 9 #include "base/global_descriptors_posix.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 CHECK(signal(SIGPIPE, SIG_IGN) != SIG_ERR); | 39 CHECK(signal(SIGPIPE, SIG_IGN) != SIG_ERR); |
40 } | 40 } |
41 | 41 |
42 } // anonymous namespace | 42 } // anonymous namespace |
43 | 43 |
44 namespace chrome_main { | 44 namespace chrome_main { |
45 | 45 |
46 void LowLevelInit(void* instance) { | 46 void LowLevelInit(void* instance) { |
47 #if defined(OS_MACOSX) | 47 #if defined(OS_MACOSX) |
48 // TODO(mark): Some of these things ought to be handled in | 48 // TODO(mark): Some of these things ought to be handled in |
49 // chrome_exe_main_mac.mm. Under the current architecture, nothing | 49 // chrome_exe_main_mac.cc. Under the current architecture, nothing |
50 // in chrome_exe_main can rely directly on chrome_dll code on the | 50 // in chrome_exe_main can rely directly on chrome_dll code on the |
51 // Mac, though, so until some of this code is refactored to avoid | 51 // Mac, though, so until some of this code is refactored to avoid |
52 // such a dependency, it lives here. See also the TODO(mark) | 52 // such a dependency, it lives here. See also the TODO(mark) |
53 // at InitCrashReporter() and DestructCrashReporter(). | 53 // at InitCrashReporter() and DestructCrashReporter(). |
54 base::EnableTerminationOnHeapCorruption(); | 54 base::EnableTerminationOnHeapCorruption(); |
55 base::EnableTerminationOnOutOfMemory(); | 55 base::EnableTerminationOnOutOfMemory(); |
56 #endif // OS_MACOSX | 56 #endif // OS_MACOSX |
57 | 57 |
58 // Set C library locale to make sure CommandLine can parse argument values | 58 // Set C library locale to make sure CommandLine can parse argument values |
59 // in correct encoding. | 59 // in correct encoding. |
(...skipping 18 matching lines...) Expand all Loading... |
78 } | 78 } |
79 | 79 |
80 #if !defined(OS_MACOSX) | 80 #if !defined(OS_MACOSX) |
81 // This policy is not implemented for Linux and ChromeOS. The win and mac ver- | 81 // This policy is not implemented for Linux and ChromeOS. The win and mac ver- |
82 // sions are implemented in the platform specific version of chrome_main.cc e.g. | 82 // sions are implemented in the platform specific version of chrome_main.cc e.g. |
83 // chrome_main_win.cc or chrome_main_mac.mm . | 83 // chrome_main_win.cc or chrome_main_mac.mm . |
84 void CheckUserDataDirPolicy(FilePath* user_data_dir) {} | 84 void CheckUserDataDirPolicy(FilePath* user_data_dir) {} |
85 #endif | 85 #endif |
86 | 86 |
87 } // namespace chrome_main | 87 } // namespace chrome_main |
OLD | NEW |