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