paulmiller | ac2fbde | 2017-04-01 00:25:12 | [diff] [blame] | 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/log_decoder.h" |
| 6 | |
| 7 | #include "third_party/zlib/google/compression_utils.h" |
| 8 | |
| 9 | namespace metrics { |
| 10 | |
| 11 | bool DecodeLogData(const std::string& compressed_log_data, |
| 12 | std::string* log_data) { |
| 13 | return compression::GzipUncompress(compressed_log_data, log_data); |
| 14 | } |
| 15 | |
| 16 | } // namespace metrics |