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

Unified Diff: components/metrics/net/compression_utils.cc

Issue 291153013: Make MetricsService upload logs through an interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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/net/compression_utils.cc
===================================================================
--- components/metrics/net/compression_utils.cc (working copy)
+++ components/metrics/net/compression_utils.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/metrics/compression_utils.h"
+#include "components/metrics/net/compression_utils.h"
#include <vector>
@@ -70,9 +70,10 @@
err = deflateEnd(&stream);
return err;
}
+
} // namespace
-namespace chrome {
+namespace metrics {
bool GzipCompress(const std::string& input, std::string* output) {
std::vector<Bytef> compressed_data(kGzipZlibHeaderDifferenceBytes +
@@ -89,4 +90,5 @@
output->assign(compressed_data.begin(), compressed_data.end());
return true;
}
-} // namespace chrome
+
+} // namespace metrics

Powered by Google App Engine
This is Rietveld 408576698