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

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

Issue 2101773002: Add crash keys to LocalDOMWindow to help diagnose bug 621730. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 4 years, 5 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
« no previous file with comments | « blimp/engine/app/blimp_engine_crash_keys.cc ('k') | third_party/WebKit/Source/DEPS » ('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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 { "initrf_parent_is_in_same_site_instance", kSmallSize}, 183 { "initrf_parent_is_in_same_site_instance", kSmallSize},
184 { "initrf_parent_process_is_live", kSmallSize}, 184 { "initrf_parent_process_is_live", kSmallSize},
185 { "initrf_root_is_in_same_site_instance", kSmallSize}, 185 { "initrf_root_is_in_same_site_instance", kSmallSize},
186 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize}, 186 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize},
187 { "initrf_root_process_is_live", kSmallSize}, 187 { "initrf_root_process_is_live", kSmallSize},
188 { "initrf_root_proxy_is_live", kSmallSize}, 188 { "initrf_root_proxy_is_live", kSmallSize},
189 189
190 // Temporary for https://crbug.com/612711. 190 // Temporary for https://crbug.com/612711.
191 { "aci_wrong_sp_extension_id", kSmallSize }, 191 { "aci_wrong_sp_extension_id", kSmallSize },
192 192
193 // Temporary for http://crbug.com/621730
194 { "postmessage_src_origin", kMediumSize },
195 { "postmessage_dst_origin", kMediumSize },
196 { "postmessage_dst_url", kLargeSize },
197
193 // Temporary for https://crbug.com/616149. 198 // Temporary for https://crbug.com/616149.
194 { "existing_extension_pref_value_type", crash_keys::kSmallSize }, 199 { "existing_extension_pref_value_type", crash_keys::kSmallSize },
195 }; 200 };
196 201
197 // This dynamic set of keys is used for sets of key value pairs when gathering 202 // This dynamic set of keys is used for sets of key value pairs when gathering
198 // a collection of data, like command line switches or extension IDs. 203 // a collection of data, like command line switches or extension IDs.
199 std::vector<base::debug::CrashKey> keys( 204 std::vector<base::debug::CrashKey> keys(
200 fixed_keys, fixed_keys + arraysize(fixed_keys)); 205 fixed_keys, fixed_keys + arraysize(fixed_keys));
201 206
202 crash_keys::GetCrashKeysForCommandLineSwitches(&keys); 207 crash_keys::GetCrashKeysForCommandLineSwitches(&keys);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 } 334 }
330 335
331 ScopedPrinterInfo::~ScopedPrinterInfo() { 336 ScopedPrinterInfo::~ScopedPrinterInfo() {
332 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 337 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
333 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 338 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
334 base::debug::ClearCrashKey(key); 339 base::debug::ClearCrashKey(key);
335 } 340 }
336 } 341 }
337 342
338 } // namespace crash_keys 343 } // namespace crash_keys
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_engine_crash_keys.cc ('k') | third_party/WebKit/Source/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698