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

Unified Diff: components/crash/content/app/crashpad.cc

Issue 1512463003: win: Get Kasko crash keys from Crashpad instead of Breakpad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary initialization Created 5 years 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
Index: components/crash/content/app/crashpad.cc
diff --git a/components/crash/content/app/crashpad.cc b/components/crash/content/app/crashpad.cc
index e3b4124affd8182b1d160d42f109363bab717612..3c4880c93d7e5c83e03cc0f600a4da5d3f8fe2ce 100644
--- a/components/crash/content/app/crashpad.cc
+++ b/components/crash/content/app/crashpad.cc
@@ -233,4 +233,17 @@ void GetUploadedReports(std::vector<UploadedReport>* uploaded_reports) {
});
}
+std::vector<std::pair<std::string, std::string>> GetCrashKeys() {
+ std::vector<std::pair<std::string, std::string>> pairs;
+ pairs.reserve(g_simple_string_dictionary->GetCount());
+ crashpad::SimpleStringDictionary::Iterator iter(*g_simple_string_dictionary);
+ for (;;) {
+ const auto* entry = iter.Next();
+ if (!entry)
+ break;
+ pairs.push_back(std::make_pair(entry->key, entry->value));
+ }
+ return pairs;
+}
+
} // namespace crash_reporter

Powered by Google App Engine
This is Rietveld 408576698