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