| OLD | NEW |
| (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 |
| OLD | NEW |