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

Unified Diff: third_party/crashpad/crashpad/client/crashpad_client_win.cc

Issue 2308763002: Integrate Crashpad UMA (Closed)
Patch Set: . Created 4 years, 3 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
Index: third_party/crashpad/crashpad/client/crashpad_client_win.cc
diff --git a/third_party/crashpad/crashpad/client/crashpad_client_win.cc b/third_party/crashpad/crashpad/client/crashpad_client_win.cc
index 537e18ab99088b55deadc48c63c54da6289c157e..40a3b093df216a9ce5325f4fe5e468447847a4d0 100644
--- a/third_party/crashpad/crashpad/client/crashpad_client_win.cc
+++ b/third_party/crashpad/crashpad/client/crashpad_client_win.cc
@@ -200,6 +200,7 @@ CrashpadClient::~CrashpadClient() {
bool CrashpadClient::StartHandler(
const base::FilePath& handler,
const base::FilePath& database,
+ const base::FilePath& metrics_dir,
const std::string& url,
const std::map<std::string, std::string>& annotations,
const std::vector<std::string>& arguments,
@@ -232,6 +233,11 @@ bool CrashpadClient::StartHandler(
database.value()),
&command_line);
}
+ if (!metrics_dir.value().empty()) {
+ AppendCommandLineArgument(
+ FormatArgumentString("metrics-dir", metrics_dir.value()),
+ &command_line);
+ }
if (!url.empty()) {
AppendCommandLineArgument(FormatArgumentString("url",
base::UTF8ToUTF16(url)),
« no previous file with comments | « third_party/crashpad/crashpad/client/crashpad_client_mac.cc ('k') | third_party/crashpad/crashpad/handler/handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698