Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: chrome/common/crash_keys.cc

Issue 2560873004: ServiceWorker: add crash keys for debugging of IPCs and remove old keys (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.cc ('k') | chromecast/crash/cast_crash_keys.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 { "aci_wrong_sp_extension_id", kSmallSize }, 239 { "aci_wrong_sp_extension_id", kSmallSize },
240 240
241 // Temporary for https://crbug.com/616149. 241 // Temporary for https://crbug.com/616149.
242 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, 242 { "existing_extension_pref_value_type", crash_keys::kSmallSize },
243 243
244 // Temporary for https://crbug.com/630495. 244 // Temporary for https://crbug.com/630495.
245 { "swdh_register_cannot_host_url", crash_keys::kLargeSize }, 245 { "swdh_register_cannot_host_url", crash_keys::kLargeSize },
246 { "swdh_register_cannot_scope_url", crash_keys::kLargeSize }, 246 { "swdh_register_cannot_scope_url", crash_keys::kLargeSize },
247 { "swdh_register_cannot_script_url", crash_keys::kLargeSize }, 247 { "swdh_register_cannot_script_url", crash_keys::kLargeSize },
248 248
249 // Temporary for https://crbug.com/619294.
250 { "swdh_unregister_cannot_host_url", crash_keys::kLargeSize },
251 { "swdh_unregister_cannot_scope_url", crash_keys::kLargeSize },
252
253 // Temporary for https://crbug.com/630496. 249 // Temporary for https://crbug.com/630496.
254 { "swdh_get_registration_cannot_host_url", crash_keys::kLargeSize }, 250 { "swdh_get_registration_cannot_host_url", crash_keys::kLargeSize },
255 { "swdh_get_registration_cannot_document_url", crash_keys::kLargeSize }, 251 { "swdh_get_registration_cannot_document_url", crash_keys::kLargeSize },
252
253 // Temporary for https://crbug.com/668633.
254 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize },
255 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize },
256 }; 256 };
257 257
258 // This dynamic set of keys is used for sets of key value pairs when gathering 258 // This dynamic set of keys is used for sets of key value pairs when gathering
259 // a collection of data, like command line switches or extension IDs. 259 // a collection of data, like command line switches or extension IDs.
260 std::vector<base::debug::CrashKey> keys( 260 std::vector<base::debug::CrashKey> keys(
261 fixed_keys, fixed_keys + arraysize(fixed_keys)); 261 fixed_keys, fixed_keys + arraysize(fixed_keys));
262 262
263 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); 263 crash_keys::GetCrashKeysForCommandLineSwitches(&keys);
264 264
265 // Register the extension IDs. 265 // Register the extension IDs.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 382 }
383 383
384 ScopedPrinterInfo::~ScopedPrinterInfo() { 384 ScopedPrinterInfo::~ScopedPrinterInfo() {
385 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 385 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
386 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 386 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
387 base::debug::ClearCrashKey(key); 387 base::debug::ClearCrashKey(key);
388 } 388 }
389 } 389 }
390 390
391 } // namespace crash_keys 391 } // namespace crash_keys
OLDNEW
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.cc ('k') | chromecast/crash/cast_crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698