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

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

Issue 2190513002: Add crash keys for ServiceWorkerDispatcherHost crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove space Created 4 years, 4 months 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
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 { "initrf_root_is_in_same_site_instance", kSmallSize}, 191 { "initrf_root_is_in_same_site_instance", kSmallSize},
192 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize}, 192 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize},
193 { "initrf_root_process_is_live", kSmallSize}, 193 { "initrf_root_process_is_live", kSmallSize},
194 { "initrf_root_proxy_is_live", kSmallSize}, 194 { "initrf_root_proxy_is_live", kSmallSize},
195 195
196 // Temporary for https://crbug.com/612711. 196 // Temporary for https://crbug.com/612711.
197 { "aci_wrong_sp_extension_id", kSmallSize }, 197 { "aci_wrong_sp_extension_id", kSmallSize },
198 198
199 // Temporary for https://crbug.com/616149. 199 // Temporary for https://crbug.com/616149.
200 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, 200 { "existing_extension_pref_value_type", crash_keys::kSmallSize },
201
202 // Temporary for https://crbug.com/630495.
203 { "swdh_register_cannot_host_url", crash_keys::kLargeSize },
204 { "swdh_register_cannot_scope_url", crash_keys::kLargeSize },
205 { "swdh_register_cannot_script_url", crash_keys::kLargeSize },
206
207 // Temporary for https://crbug.com/619294.
208 { "swdh_unregister_cannot_host_url", crash_keys::kLargeSize },
209 { "swdh_unregister_cannot_scope_url", crash_keys::kLargeSize },
210
211 // Temporary for https://crbug.com/630496.
212 { "swdh_get_registration_cannot_host_url", crash_keys::kLargeSize },
213 { "swdh_get_registration_cannot_document_url", crash_keys::kLargeSize },
201 }; 214 };
202 215
203 // This dynamic set of keys is used for sets of key value pairs when gathering 216 // This dynamic set of keys is used for sets of key value pairs when gathering
204 // a collection of data, like command line switches or extension IDs. 217 // a collection of data, like command line switches or extension IDs.
205 std::vector<base::debug::CrashKey> keys( 218 std::vector<base::debug::CrashKey> keys(
206 fixed_keys, fixed_keys + arraysize(fixed_keys)); 219 fixed_keys, fixed_keys + arraysize(fixed_keys));
207 220
208 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); 221 crash_keys::GetCrashKeysForCommandLineSwitches(&keys);
209 222
210 // Register the extension IDs. 223 // Register the extension IDs.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 348 }
336 349
337 ScopedPrinterInfo::~ScopedPrinterInfo() { 350 ScopedPrinterInfo::~ScopedPrinterInfo() {
338 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 351 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
339 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 352 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
340 base::debug::ClearCrashKey(key); 353 base::debug::ClearCrashKey(key);
341 } 354 }
342 } 355 }
343 356
344 } // namespace crash_keys 357 } // namespace crash_keys
OLDNEW
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.cc ('k') | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698