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

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

Issue 1410543014: Gather more debug info for the switch away from page id for titles and state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // media/: 139 // media/:
140 { "VideoCaptureDeviceQTKit", kSmallSize }, 140 { "VideoCaptureDeviceQTKit", kSmallSize },
141 #endif 141 #endif
142 #if defined(KASKO) 142 #if defined(KASKO)
143 { kKaskoGuid, kSmallSize }, 143 { kKaskoGuid, kSmallSize },
144 { kKaskoEquivalentGuid, kSmallSize }, 144 { kKaskoEquivalentGuid, kSmallSize },
145 #endif 145 #endif
146 { kBug464926CrashKey, kSmallSize }, 146 { kBug464926CrashKey, kSmallSize },
147 { kViewCount, kSmallSize }, 147 { kViewCount, kSmallSize },
148 { kZeroEncodeDetails, kSmallSize }, 148 { kZeroEncodeDetails, kSmallSize },
149
150 // Temporary for http://crbug.com/369661
151 { "pageid", kSmallSize },
152 { "navuniqueid", kSmallSize },
153 { "oldindex", kSmallSize },
154 { "newindex", kSmallSize },
155 { "lastcommittedindex", kSmallSize },
156 { "oldurl", kLargeSize },
157 { "newurl", kLargeSize },
158 { "updatedvalue", kLargeSize },
159 { "oldvalue", kLargeSize },
160 { "newvalue", kLargeSize },
161 // End http://crbug.com/369661
149 }; 162 };
150 163
151 // This dynamic set of keys is used for sets of key value pairs when gathering 164 // This dynamic set of keys is used for sets of key value pairs when gathering
152 // a collection of data, like command line switches or extension IDs. 165 // a collection of data, like command line switches or extension IDs.
153 std::vector<base::debug::CrashKey> keys( 166 std::vector<base::debug::CrashKey> keys(
154 fixed_keys, fixed_keys + arraysize(fixed_keys)); 167 fixed_keys, fixed_keys + arraysize(fixed_keys));
155 168
156 // Register the switches. 169 // Register the switches.
157 { 170 {
158 // The fixed_keys names are string constants. Use static storage for 171 // The fixed_keys names are string constants. Use static storage for
(...skipping 176 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 | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | content/browser/web_contents/web_contents_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698