| 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 "win8/delegate_execute/crash_server_init.h" | 5 #include "win8/delegate_execute/crash_server_init.h" |
| 6 | 6 |
| 7 #include <shlobj.h> | 7 #include <shlobj.h> |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <cwchar> | 10 #include <cwchar> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 if (wcsstr(exe_path, program_files_path) == exe_path) { | 40 if (wcsstr(exe_path, program_files_path) == exe_path) { |
| 41 is_system = true; | 41 is_system = true; |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 return is_system; | 45 return is_system; |
| 46 } | 46 } |
| 47 | 47 |
| 48 google_breakpad::CustomClientInfo* GetCustomInfo() { | 48 google_breakpad::CustomClientInfo* GetCustomInfo() { |
| 49 scoped_ptr<FileVersionInfo> version_info( | 49 scoped_ptr<FileVersionInfo> version_info( |
| 50 FileVersionInfo::CreateFileVersionInfoForCurrentModule()); | 50 FileVersionInfo::CreateFileVersionInfoForModule(NULL)); |
| 51 | 51 |
| 52 static google_breakpad::CustomInfoEntry ver_entry( | 52 static google_breakpad::CustomInfoEntry ver_entry( |
| 53 L"ver", version_info->file_version().c_str()); | 53 L"ver", version_info->file_version().c_str()); |
| 54 static google_breakpad::CustomInfoEntry prod_entry(L"prod", L"Chrome"); | 54 static google_breakpad::CustomInfoEntry prod_entry(L"prod", L"Chrome"); |
| 55 static google_breakpad::CustomInfoEntry plat_entry(L"plat", L"Win32"); | 55 static google_breakpad::CustomInfoEntry plat_entry(L"plat", L"Win32"); |
| 56 static google_breakpad::CustomInfoEntry type_entry(L"ptype", | 56 static google_breakpad::CustomInfoEntry type_entry(L"ptype", |
| 57 L"delegate_execute"); | 57 L"delegate_execute"); |
| 58 static google_breakpad::CustomInfoEntry entries[] = { | 58 static google_breakpad::CustomInfoEntry entries[] = { |
| 59 ver_entry, prod_entry, plat_entry, type_entry }; | 59 ver_entry, prod_entry, plat_entry, type_entry }; |
| 60 static google_breakpad::CustomClientInfo custom_info = { | 60 static google_breakpad::CustomClientInfo custom_info = { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 87 } | 87 } |
| 88 | 88 |
| 89 return scoped_ptr<google_breakpad::ExceptionHandler>( | 89 return scoped_ptr<google_breakpad::ExceptionHandler>( |
| 90 new google_breakpad::ExceptionHandler( | 90 new google_breakpad::ExceptionHandler( |
| 91 temp_path, NULL, NULL, NULL, | 91 temp_path, NULL, NULL, NULL, |
| 92 google_breakpad::ExceptionHandler::HANDLER_ALL, kLargerDumpType, | 92 google_breakpad::ExceptionHandler::HANDLER_ALL, kLargerDumpType, |
| 93 pipe_name.c_str(), GetCustomInfo())); | 93 pipe_name.c_str(), GetCustomInfo())); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace delegate_execute | 96 } // namespace delegate_execute |
| OLD | NEW |