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/breakpad_win.h" | 5 #include "chrome/app/breakpad_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <tchar.h> | 9 #include <tchar.h> |
10 #include <userenv.h> | 10 #include <userenv.h> |
11 | 11 |
12 #include <algorithm> | 12 #include <algorithm> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/base_switches.h" | 15 #include "base/base_switches.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/debug/crash_logging.h" | 17 #include "base/debug/crash_logging.h" |
18 #include "base/environment.h" | 18 #include "base/environment.h" |
19 #include "base/file_util.h" | 19 #include "base/file_util.h" |
20 #include "base/file_version_info.h" | 20 #include "base/file_version_info.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/string_split.h" | |
23 #include "base/string_util.h" | 22 #include "base/string_util.h" |
24 #include "base/string16.h" | 23 #include "base/string16.h" |
25 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
| 25 #include "base/strings/string_split.h" |
26 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" |
27 #include "base/win/registry.h" | 27 #include "base/win/registry.h" |
28 #include "base/win/win_util.h" | 28 #include "base/win/win_util.h" |
29 #include "breakpad/src/client/windows/handler/exception_handler.h" | 29 #include "breakpad/src/client/windows/handler/exception_handler.h" |
30 #include "chrome/app/breakpad_field_trial_win.h" | 30 #include "chrome/app/breakpad_field_trial_win.h" |
31 #include "chrome/app/crash_analysis_win.h" | 31 #include "chrome/app/crash_analysis_win.h" |
32 #include "chrome/app/hard_error_handler_win.h" | 32 #include "chrome/app/hard_error_handler_win.h" |
33 #include "chrome/common/child_process_logging.h" | 33 #include "chrome/common/child_process_logging.h" |
34 #include "chrome/common/chrome_result_codes.h" | 34 #include "chrome/common/chrome_result_codes.h" |
35 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 previous_filter = SetUnhandledExceptionFilter(filter); | 1006 previous_filter = SetUnhandledExceptionFilter(filter); |
1007 } | 1007 } |
1008 | 1008 |
1009 void StringVectorToCStringVector(const std::vector<std::wstring>& wstrings, | 1009 void StringVectorToCStringVector(const std::vector<std::wstring>& wstrings, |
1010 std::vector<const wchar_t*>* cstrings) { | 1010 std::vector<const wchar_t*>* cstrings) { |
1011 cstrings->clear(); | 1011 cstrings->clear(); |
1012 cstrings->reserve(wstrings.size()); | 1012 cstrings->reserve(wstrings.size()); |
1013 for (size_t i = 0; i < wstrings.size(); ++i) | 1013 for (size_t i = 0; i < wstrings.size(); ++i) |
1014 cstrings->push_back(wstrings[i].c_str()); | 1014 cstrings->push_back(wstrings[i].c_str()); |
1015 } | 1015 } |
OLD | NEW |