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

Unified Diff: chrome/common/pdf_uma.cc

Issue 2901563003: PDF: Add UMA to track embedded PDF triggered drive-by downloads. (Closed)
Patch Set: Created 3 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
Index: chrome/common/pdf_uma.cc
diff --git a/chrome/common/pdf_uma.cc b/chrome/common/pdf_uma.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f2bbe00cca7b50430d6c6b18e604242d84a1e669
--- /dev/null
+++ b/chrome/common/pdf_uma.cc
@@ -0,0 +1,12 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/common/pdf_uma.h"
+
+#include "base/metrics/histogram_macros.h"
+
+// static
+void ReportPDFLoadStatus(PDFLoadStatus status) {
+ UMA_HISTOGRAM_ENUMERATION("PDF.LoadStatus", status, PDF_LOAD_STATUS_COUNT);
+}

Powered by Google App Engine
This is Rietveld 408576698