| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 260 |
| 261 // These surround the flags that were added by about:flags, it lets | 261 // These surround the flags that were added by about:flags, it lets |
| 262 // you distinguish which flags were added manually via the command | 262 // you distinguish which flags were added manually via the command |
| 263 // line versus those added through about:flags. For the most part | 263 // line versus those added through about:flags. For the most part |
| 264 // we don't care how an option was enabled, so we strip these. | 264 // we don't care how an option was enabled, so we strip these. |
| 265 // (If you need to know can always look at the PEB). | 265 // (If you need to know can always look at the PEB). |
| 266 flag == "--flag-switches-begin" || | 266 flag == "--flag-switches-begin" || |
| 267 flag == "--flag-switches-end"; | 267 flag == "--flag-switches-end"; |
| 268 #elif defined(OS_CHROMEOS) | 268 #elif defined(OS_CHROMEOS) |
| 269 static const char* const kIgnoreSwitches[] = { | 269 static const char* const kIgnoreSwitches[] = { |
| 270 ::switches::kEnableImplSidePainting, | |
| 271 ::switches::kEnableLogging, | 270 ::switches::kEnableLogging, |
| 272 ::switches::kFlagSwitchesBegin, | 271 ::switches::kFlagSwitchesBegin, |
| 273 ::switches::kFlagSwitchesEnd, | 272 ::switches::kFlagSwitchesEnd, |
| 274 ::switches::kLoggingLevel, | 273 ::switches::kLoggingLevel, |
| 275 ::switches::kPpapiFlashArgs, | 274 ::switches::kPpapiFlashArgs, |
| 276 ::switches::kPpapiFlashPath, | 275 ::switches::kPpapiFlashPath, |
| 277 ::switches::kRegisterPepperPlugins, | 276 ::switches::kRegisterPepperPlugins, |
| 278 ::switches::kUIPrioritizeInGpuProcess, | 277 ::switches::kUIPrioritizeInGpuProcess, |
| 279 ::switches::kUseGL, | 278 ::switches::kUseGL, |
| 280 ::switches::kUserDataDir, | 279 ::switches::kUserDataDir, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 } | 395 } |
| 397 | 396 |
| 398 ScopedPrinterInfo::~ScopedPrinterInfo() { | 397 ScopedPrinterInfo::~ScopedPrinterInfo() { |
| 399 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 398 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
| 400 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 399 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
| 401 base::debug::ClearCrashKey(key); | 400 base::debug::ClearCrashKey(key); |
| 402 } | 401 } |
| 403 } | 402 } |
| 404 | 403 |
| 405 } // namespace crash_keys | 404 } // namespace crash_keys |
| OLD | NEW |