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/macros.h" |
11 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 15 #include "build/build_config.h" |
14 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
15 #include "components/flags_ui/flags_ui_switches.h" | 17 #include "components/flags_ui/flags_ui_switches.h" |
16 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
17 #include "ipc/ipc_switches.h" | 19 #include "ipc/ipc_switches.h" |
18 | 20 |
19 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
20 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
21 #include "gpu/command_buffer/service/gpu_switches.h" | 23 #include "gpu/command_buffer/service/gpu_switches.h" |
22 #include "ui/gl/gl_switches.h" | 24 #include "ui/gl/gl_switches.h" |
23 #endif | 25 #endif |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 } | 291 } |
290 | 292 |
291 ScopedPrinterInfo::~ScopedPrinterInfo() { | 293 ScopedPrinterInfo::~ScopedPrinterInfo() { |
292 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 294 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
293 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 295 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
294 base::debug::ClearCrashKey(key); | 296 base::debug::ClearCrashKey(key); |
295 } | 297 } |
296 } | 298 } |
297 | 299 |
298 } // namespace crash_keys | 300 } // namespace crash_keys |
OLD | NEW |