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

Unified Diff: components/metrics/simple_metrics_log_uploader.cc

Issue 2778203003: WebView: Create UMA uploader (Closed)
Patch Set: Created 3 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
Index: components/metrics/simple_metrics_log_uploader.cc
diff --git a/components/metrics/simple_metrics_log_uploader.cc b/components/metrics/simple_metrics_log_uploader.cc
new file mode 100644
index 0000000000000000000000000000000000000000..027fbd2f414f9ec028c3d016456fe7b771cd4a0b
--- /dev/null
+++ b/components/metrics/simple_metrics_log_uploader.cc
@@ -0,0 +1,20 @@
+// Copyright 2017 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/metrics/simple_metrics_log_uploader.h"
+
+#include <string>
+
+#include "third_party/zlib/google/compression_utils.h"
+
+namespace metrics {
+
+void SimpleMetricsLogUploader::UploadLog(const std::string& compressed_log_data,
+ const std::string& log_hash) {
+ std::string uncompressed_log_data;
+ compression::GzipUncompress(compressed_log_data, &uncompressed_log_data);
+ UploadLog(uncompressed_log_data);
+}
+
+} // namespace metrics

Powered by Google App Engine
This is Rietveld 408576698