OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/common/crash_keys.h" | 5 #include "chrome/common/crash_keys.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
17 #include "ipc/ipc_switches.h" | 17 #include "ipc/ipc_switches.h" |
18 | 18 |
19 // Breakpad dependencies exist only on Windows and Mac desktop. Exclude them | |
20 // from "gn check" to avoid failures on Linux (it doesn't understand ifdefs). | |
21 #if defined(OS_MACOSX) | 19 #if defined(OS_MACOSX) |
22 #include "breakpad/src/common/simple_string_dictionary.h" // nogncheck | 20 #include "breakpad/src/common/simple_string_dictionary.h" |
23 #elif defined(OS_WIN) | 21 #elif defined(OS_WIN) |
24 #include "breakpad/src/client/windows/common/ipc_protocol.h" // nogncheck | 22 #include "breakpad/src/client/windows/common/ipc_protocol.h" |
25 #elif defined(OS_CHROMEOS) | 23 #elif defined(OS_CHROMEOS) |
26 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
27 #include "gpu/command_buffer/service/gpu_switches.h" | 25 #include "gpu/command_buffer/service/gpu_switches.h" |
28 #include "ui/gl/gl_switches.h" | 26 #include "ui/gl/gl_switches.h" |
29 #endif | 27 #endif |
30 | 28 |
31 namespace crash_keys { | 29 namespace crash_keys { |
32 | 30 |
33 // The maximum lengths specified by breakpad include the trailing NULL, so | 31 // The maximum lengths specified by breakpad include the trailing NULL, so |
34 // the actual length of the string is one less. | 32 // the actual length of the string is one less. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 } | 357 } |
360 | 358 |
361 ScopedPrinterInfo::~ScopedPrinterInfo() { | 359 ScopedPrinterInfo::~ScopedPrinterInfo() { |
362 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 360 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
363 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 361 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
364 base::debug::ClearCrashKey(key); | 362 base::debug::ClearCrashKey(key); |
365 } | 363 } |
366 } | 364 } |
367 | 365 |
368 } // namespace crash_keys | 366 } // namespace crash_keys |
OLD | NEW |