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

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

Issue 493853002: Keep a copy of page id in RenderViewHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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/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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 { mac::kLastNSExceptionTrace, kMediumSize }, 156 { mac::kLastNSExceptionTrace, kMediumSize },
157 { mac::kNSException, kMediumSize }, 157 { mac::kNSException, kMediumSize },
158 { mac::kNSExceptionTrace, kMediumSize }, 158 { mac::kNSExceptionTrace, kMediumSize },
159 { mac::kSendAction, kMediumSize }, 159 { mac::kSendAction, kMediumSize },
160 { mac::kZombie, kMediumSize }, 160 { mac::kZombie, kMediumSize },
161 { mac::kZombieTrace, kMediumSize }, 161 { mac::kZombieTrace, kMediumSize },
162 // content/: 162 // content/:
163 { "channel_error_bt", kMediumSize }, 163 { "channel_error_bt", kMediumSize },
164 { "remove_route_bt", kMediumSize }, 164 { "remove_route_bt", kMediumSize },
165 { "rwhvm_window", kMediumSize }, 165 { "rwhvm_window", kMediumSize },
166 // The following keys are for diagnosing crashes in http://crbug.com/369661.
167 // They will not be permanent.
168 { "url1", kLargeSize },
169 { "url2", kLargeSize },
170 { "id1", kSmallSize },
171 { "id2", kSmallSize },
172 // End http://crbug.com/369661
166 // media/: 173 // media/:
167 { "VideoCaptureDeviceQTKit", kSmallSize }, 174 { "VideoCaptureDeviceQTKit", kSmallSize },
168 #endif 175 #endif
169 }; 176 };
170 177
171 // This dynamic set of keys is used for sets of key value pairs when gathering 178 // This dynamic set of keys is used for sets of key value pairs when gathering
172 // a collection of data, like command line switches or extension IDs. 179 // a collection of data, like command line switches or extension IDs.
173 std::vector<base::debug::CrashKey> keys( 180 std::vector<base::debug::CrashKey> keys(
174 fixed_keys, fixed_keys + arraysize(fixed_keys)); 181 fixed_keys, fixed_keys + arraysize(fixed_keys));
175 182
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 399 }
393 400
394 ScopedPrinterInfo::~ScopedPrinterInfo() { 401 ScopedPrinterInfo::~ScopedPrinterInfo() {
395 for (size_t i = 0; i < kPrinterInfoCount; ++i) { 402 for (size_t i = 0; i < kPrinterInfoCount; ++i) {
396 std::string key = base::StringPrintf(kPrinterInfo, i + 1); 403 std::string key = base::StringPrintf(kPrinterInfo, i + 1);
397 base::debug::ClearCrashKey(key); 404 base::debug::ClearCrashKey(key);
398 } 405 }
399 } 406 }
400 407
401 } // namespace crash_keys 408 } // namespace crash_keys
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698