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

Side by Side Diff: components/metrics/simple_metrics_log_uploader.cc

Issue 2778203003: WebView: Create UMA uploader (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/metrics/simple_metrics_log_uploader.h"
6
7 #include <string>
8
9 #include "third_party/zlib/google/compression_utils.h"
10
11 namespace metrics {
12
13 void SimpleMetricsLogUploader::UploadLog(const std::string& compressed_log_data,
14 const std::string& log_hash) {
15 std::string uncompressed_log_data;
16 compression::GzipUncompress(compressed_log_data, &uncompressed_log_data);
17 UploadLog(uncompressed_log_data);
18 }
19
20 } // namespace metrics
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698