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

Unified Diff: components/dom_distiller/core/feedback_reporter.cc

Issue 197473006: Add FeedbackReporter for reporting distillation quality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed disableUI again and comment Created 6 years, 9 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 | « components/dom_distiller/core/feedback_reporter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/feedback_reporter.cc
diff --git a/components/dom_distiller/core/feedback_reporter.cc b/components/dom_distiller/core/feedback_reporter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a536ef7cca3f35578df8d8593c90f00e15b5186e
--- /dev/null
+++ b/components/dom_distiller/core/feedback_reporter.cc
@@ -0,0 +1,20 @@
+// Copyright 2014 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 "components/dom_distiller/core/feedback_reporter.h"
+
+#include "base/metrics/histogram.h"
+
+namespace dom_distiller {
+
+FeedbackReporter::FeedbackReporter() {}
+
+FeedbackReporter::~FeedbackReporter() {}
+
+// static
+void FeedbackReporter::ReportQuality(bool good) {
+ UMA_HISTOGRAM_BOOLEAN("DomDistiller.DistillationQuality", good);
+}
+
+} // namespace dom_distiller
« no previous file with comments | « components/dom_distiller/core/feedback_reporter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698