Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: chrome/app/hard_error_handler_win.cc

Issue 16320010: Use a direct include of strings headers in chrome/app/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/delay_load_hook_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/hard_error_handler_win.h" 5 #include "chrome/app/hard_error_handler_win.h"
6 6
7 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700 7 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700
8 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h, and in 8 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h, and in
9 // delayimp.h previous to VS2012. 9 // delayimp.h previous to VS2012.
10 #undef FACILITY_VISUALCPP 10 #undef FACILITY_VISUALCPP
11 #endif 11 #endif
12 #include <DelayIMP.h> 12 #include <DelayIMP.h>
13 #include <winternl.h> 13 #include <winternl.h>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "chrome/common/env_vars.h" 17 #include "chrome/common/env_vars.h"
18 18
19 namespace { 19 namespace {
20 const DWORD kExceptionModuleNotFound = VcppException(ERROR_SEVERITY_ERROR, 20 const DWORD kExceptionModuleNotFound = VcppException(ERROR_SEVERITY_ERROR,
21 ERROR_MOD_NOT_FOUND); 21 ERROR_MOD_NOT_FOUND);
22 const DWORD kExceptionEntryPtNotFound = VcppException(ERROR_SEVERITY_ERROR, 22 const DWORD kExceptionEntryPtNotFound = VcppException(ERROR_SEVERITY_ERROR,
23 ERROR_PROC_NOT_FOUND); 23 ERROR_PROC_NOT_FOUND);
24 // This is defined in <ntstatus.h> but we can't include this file here. 24 // This is defined in <ntstatus.h> but we can't include this file here.
25 const DWORD FACILITY_GRAPHICS_KERNEL = 0x1E; 25 const DWORD FACILITY_GRAPHICS_KERNEL = 0x1E;
26 const DWORD NT_STATUS_ENTRYPOINT_NOT_FOUND = 0xC0000139; 26 const DWORD NT_STATUS_ENTRYPOINT_NOT_FOUND = 0xC0000139;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } else if (FacilityFromException(exception) == FACILITY_GRAPHICS_KERNEL) { 105 } else if (FacilityFromException(exception) == FACILITY_GRAPHICS_KERNEL) {
106 #if defined(USE_AURA) 106 #if defined(USE_AURA)
107 RaiseHardErrorMsg(exception, std::string(), std::string()); 107 RaiseHardErrorMsg(exception, std::string(), std::string());
108 return true; 108 return true;
109 #else 109 #else
110 return false; 110 return false;
111 #endif 111 #endif
112 } 112 }
113 return false; 113 return false;
114 } 114 }
OLDNEW
« no previous file with comments | « chrome/app/delay_load_hook_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698