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

Unified Diff: chrome/browser/metrics/metrics_log_serializer.h

Issue 239093004: Move part of metrics from chrome/common to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding TBR section for owners of minor changes. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/metrics_log_serializer.h
diff --git a/chrome/browser/metrics/metrics_log_serializer.h b/chrome/browser/metrics/metrics_log_serializer.h
index ae85b1390f4141d0cb9ac6a0f98ada03f4bde0ae..74d39e5ea9348cffac6d9270a976d7cf457817df 100644
--- a/chrome/browser/metrics/metrics_log_serializer.h
+++ b/chrome/browser/metrics/metrics_log_serializer.h
@@ -9,14 +9,14 @@
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
-#include "chrome/common/metrics/metrics_log_manager.h"
+#include "components/metrics/metrics_log_manager.h"
namespace base {
class ListValue;
}
// Serializer for persisting metrics logs to prefs.
-class MetricsLogSerializer : public MetricsLogManager::LogSerializer {
+class MetricsLogSerializer : public metrics::MetricsLogManager::LogSerializer {
public:
// Used to produce a histogram that keeps track of the status of recalling
// persisted per logs.
@@ -39,13 +39,13 @@ class MetricsLogSerializer : public MetricsLogManager::LogSerializer {
MetricsLogSerializer();
virtual ~MetricsLogSerializer();
- // Implementation of MetricsLogManager::LogSerializer
+ // Implementation of metrics::MetricsLogManager::LogSerializer
virtual void SerializeLogs(
- const std::vector<MetricsLogManager::SerializedLog>& logs,
- MetricsLogManager::LogType log_type) OVERRIDE;
+ const std::vector<metrics::MetricsLogManager::SerializedLog>& logs,
+ metrics::MetricsLogManager::LogType log_type) OVERRIDE;
virtual void DeserializeLogs(
- MetricsLogManager::LogType log_type,
- std::vector<MetricsLogManager::SerializedLog>* logs) OVERRIDE;
+ metrics::MetricsLogManager::LogType log_type,
+ std::vector<metrics::MetricsLogManager::SerializedLog>* logs) OVERRIDE;
private:
// Encodes the textual log data from |local_list| and writes it to the given
@@ -54,7 +54,7 @@ class MetricsLogSerializer : public MetricsLogManager::LogSerializer {
// |list_length_limit| logs and |byte_limit| bytes of logs have been
// stored. At least one of those two arguments must be non-zero.
static void WriteLogsToPrefList(
- const std::vector<MetricsLogManager::SerializedLog>& local_list,
+ const std::vector<metrics::MetricsLogManager::SerializedLog>& local_list,
size_t list_length_limit,
size_t byte_limit,
base::ListValue* list);
@@ -63,7 +63,7 @@ class MetricsLogSerializer : public MetricsLogManager::LogSerializer {
// |local_list| and returning a status code.
static LogReadStatus ReadLogsFromPrefList(
const base::ListValue& list,
- std::vector<MetricsLogManager::SerializedLog>* local_list);
+ std::vector<metrics::MetricsLogManager::SerializedLog>* local_list);
FRIEND_TEST_ALL_PREFIXES(MetricsLogSerializerTest, EmptyLogList);
FRIEND_TEST_ALL_PREFIXES(MetricsLogSerializerTest, SingleElementLogList);

Powered by Google App Engine
This is Rietveld 408576698