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

Unified Diff: chrome/browser/autocomplete/history_quick_provider.cc

Issue 1133533003: Omnibox - Log Addition Crash Data for Rare HQP Crash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better key name Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/history_quick_provider.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider.cc b/chrome/browser/autocomplete/history_quick_provider.cc
index 68cd805af91c950a9f5f13a6dfd9cf22509c1c02..7a0a6588163fc6e3b4868466722f420c62b24bb7 100644
--- a/chrome/browser/autocomplete/history_quick_provider.cc
+++ b/chrome/browser/autocomplete/history_quick_provider.cc
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/command_line.h"
+#include "base/debug/crash_logging.h"
#include "base/i18n/break_iterator.h"
#include "base/logging.h"
#include "base/metrics/field_trial.h"
@@ -258,6 +259,12 @@ AutocompleteMatch HistoryQuickProvider::QuickMatchToACMatch(
// Set |inline_autocompletion| and |allowed_to_be_default_match| if possible.
if (history_match.can_inline) {
+ base::debug::ScopedCrashKey crash_info(
+ "bug_464926_info",
+ info.url().spec() + " " +
+ base::UTF16ToUTF8(autocomplete_input_.text()) + " " +
+ base::SizeTToString(history_match.url_matches.size()) + " " +
+ base::SizeTToString(offsets.size()));;
DCHECK(!new_matches.empty());
Peter Kasting 2015/05/11 23:34:42 Can you upgrade this DCHECK to CHECK to find insta
Mark P 2015/05/11 23:45:15 There is no need; it'll crash anyway on the line b
Peter Kasting 2015/05/11 23:47:13 I'm mostly worried about it not crashing until sli
Mark P 2015/05/11 23:49:59 Done.
size_t inline_autocomplete_offset = new_matches[0].offset +
new_matches[0].length;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698