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, |
270 ::switches::kEnableLogging, | 271 ::switches::kEnableLogging, |
271 ::switches::kFlagSwitchesBegin, | 272 ::switches::kFlagSwitchesBegin, |
272 ::switches::kFlagSwitchesEnd, | 273 ::switches::kFlagSwitchesEnd, |
273 ::switches::kLoggingLevel, | 274 ::switches::kLoggingLevel, |
274 ::switches::kPpapiFlashArgs, | 275 ::switches::kPpapiFlashArgs, |
275 ::switches::kPpapiFlashPath, | 276 ::switches::kPpapiFlashPath, |
276 ::switches::kRegisterPepperPlugins, | 277 ::switches::kRegisterPepperPlugins, |
277 ::switches::kUIPrioritizeInGpuProcess, | 278 ::switches::kUIPrioritizeInGpuProcess, |
278 ::switches::kUseGL, | 279 ::switches::kUseGL, |
279 ::switches::kUserDataDir, | 280 ::switches::kUserDataDir, |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 } | 396 } |
396 | 397 |
397 ScopedPrinterInfo::~ScopedPrinterInfo() { | 398 ScopedPrinterInfo::~ScopedPrinterInfo() { |
398 for (size_t i = 0; i < kPrinterInfoCount; ++i) { | 399 for (size_t i = 0; i < kPrinterInfoCount; ++i) { |
399 std::string key = base::StringPrintf(kPrinterInfo, i + 1); | 400 std::string key = base::StringPrintf(kPrinterInfo, i + 1); |
400 base::debug::ClearCrashKey(key); | 401 base::debug::ClearCrashKey(key); |
401 } | 402 } |
402 } | 403 } |
403 | 404 |
404 } // namespace crash_keys | 405 } // namespace crash_keys |
OLD | NEW |