| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/crash/app/hard_error_handler_win.h" | 5 #include "components/crash/app/hard_error_handler_win.h" |
| 6 | 6 |
| 7 #include <DelayIMP.h> | 7 #include <DelayIMP.h> |
| 8 #include <winternl.h> | 8 #include <winternl.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 return false; | 95 return false; |
| 96 | 96 |
| 97 long exception = ex_info->ExceptionRecord->ExceptionCode; | 97 long exception = ex_info->ExceptionRecord->ExceptionCode; |
| 98 if (exception == kExceptionModuleNotFound) { | 98 if (exception == kExceptionModuleNotFound) { |
| 99 ModuleNotFoundHardError(ex_info->ExceptionRecord); | 99 ModuleNotFoundHardError(ex_info->ExceptionRecord); |
| 100 return true; | 100 return true; |
| 101 } else if (exception == kExceptionEntryPtNotFound) { | 101 } else if (exception == kExceptionEntryPtNotFound) { |
| 102 EntryPointNotFoundHardError(ex_info->ExceptionRecord); | 102 EntryPointNotFoundHardError(ex_info->ExceptionRecord); |
| 103 return true; | 103 return true; |
| 104 } else if (FacilityFromException(exception) == FACILITY_GRAPHICS_KERNEL) { | 104 } else if (FacilityFromException(exception) == FACILITY_GRAPHICS_KERNEL) { |
| 105 #if defined(USE_AURA) | |
| 106 RaiseHardErrorMsg(exception, std::string(), std::string()); | 105 RaiseHardErrorMsg(exception, std::string(), std::string()); |
| 107 return true; | 106 return true; |
| 108 #else | |
| 109 return false; | |
| 110 #endif | |
| 111 } | 107 } |
| 112 return false; | 108 return false; |
| 113 } | 109 } |
| 114 | 110 |
| 115 } // namespace breakpad | 111 } // namespace breakpad |
| OLD | NEW |