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 <stddef.h> | 7 #include <stddef.h> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 | 970 |
971 void ChromeMainDelegate::ProcessExiting(const std::string& process_type) { | 971 void ChromeMainDelegate::ProcessExiting(const std::string& process_type) { |
972 if (SubprocessNeedsResourceBundle(process_type)) | 972 if (SubprocessNeedsResourceBundle(process_type)) |
973 ResourceBundle::CleanupSharedInstance(); | 973 ResourceBundle::CleanupSharedInstance(); |
974 #if !defined(OS_ANDROID) | 974 #if !defined(OS_ANDROID) |
975 logging::CleanupChromeLogging(); | 975 logging::CleanupChromeLogging(); |
976 #else | 976 #else |
977 // Android doesn't use InitChromeLogging, so we close the log file manually. | 977 // Android doesn't use InitChromeLogging, so we close the log file manually. |
978 logging::CloseLogFile(); | 978 logging::CloseLogFile(); |
979 #endif // !defined(OS_ANDROID) | 979 #endif // !defined(OS_ANDROID) |
980 | |
981 #if defined(OS_WIN) | |
982 base::debug::RemoveHandleHooks(); | |
983 #endif | |
984 } | 980 } |
985 | 981 |
986 #if defined(OS_MACOSX) | 982 #if defined(OS_MACOSX) |
987 bool ChromeMainDelegate::ProcessRegistersWithSystemProcess( | 983 bool ChromeMainDelegate::ProcessRegistersWithSystemProcess( |
988 const std::string& process_type) { | 984 const std::string& process_type) { |
989 #if defined(DISABLE_NACL) | 985 #if defined(DISABLE_NACL) |
990 return false; | 986 return false; |
991 #else | 987 #else |
992 return process_type == switches::kNaClLoaderProcess; | 988 return process_type == switches::kNaClLoaderProcess; |
993 #endif | 989 #endif |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 case version_info::Channel::CANARY: | 1079 case version_info::Channel::CANARY: |
1084 return true; | 1080 return true; |
1085 case version_info::Channel::DEV: | 1081 case version_info::Channel::DEV: |
1086 case version_info::Channel::BETA: | 1082 case version_info::Channel::BETA: |
1087 case version_info::Channel::STABLE: | 1083 case version_info::Channel::STABLE: |
1088 default: | 1084 default: |
1089 // Don't enable instrumentation. | 1085 // Don't enable instrumentation. |
1090 return false; | 1086 return false; |
1091 } | 1087 } |
1092 } | 1088 } |
OLD | NEW |