| 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/app/chrome_main_delegate.h" | 5 #include "chrome/app/chrome_main_delegate.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/environment.h" | 8 #include "base/environment.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 raise(signal); | 298 raise(signal); |
| 299 } | 299 } |
| 300 | 300 |
| 301 void SetUpProfilingShutdownHandler() { | 301 void SetUpProfilingShutdownHandler() { |
| 302 struct sigaction sigact; | 302 struct sigaction sigact; |
| 303 sigact.sa_handler = SIGTERMProfilingShutdown; | 303 sigact.sa_handler = SIGTERMProfilingShutdown; |
| 304 sigact.sa_flags = SA_RESETHAND; | 304 sigact.sa_flags = SA_RESETHAND; |
| 305 sigemptyset(&sigact.sa_mask); | 305 sigemptyset(&sigact.sa_mask); |
| 306 CHECK(sigaction(SIGTERM, &sigact, NULL) == 0); | 306 CHECK(sigaction(SIGTERM, &sigact, NULL) == 0); |
| 307 } | 307 } |
| 308 #endif | 308 #endif // !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 309 | 309 |
| 310 #endif // OS_POSIX | 310 #endif // OS_POSIX |
| 311 | 311 |
| 312 struct MainFunction { | 312 struct MainFunction { |
| 313 const char* name; | 313 const char* name; |
| 314 int (*function)(const content::MainFunctionParams&); | 314 int (*function)(const content::MainFunctionParams&); |
| 315 }; | 315 }; |
| 316 | 316 |
| 317 } // namespace | 317 } // namespace |
| 318 | 318 |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 } | 851 } |
| 852 | 852 |
| 853 content::ContentUtilityClient* | 853 content::ContentUtilityClient* |
| 854 ChromeMainDelegate::CreateContentUtilityClient() { | 854 ChromeMainDelegate::CreateContentUtilityClient() { |
| 855 #if defined(CHROME_MULTIPLE_DLL_BROWSER) | 855 #if defined(CHROME_MULTIPLE_DLL_BROWSER) |
| 856 return NULL; | 856 return NULL; |
| 857 #else | 857 #else |
| 858 return &g_chrome_content_utility_client.Get(); | 858 return &g_chrome_content_utility_client.Get(); |
| 859 #endif | 859 #endif |
| 860 } | 860 } |
| OLD | NEW |