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 69986b6b7d1a1fa7da1a3f270010efc1f886ee4c..801c47c5b3723052642627c527e21131b7d67e9d 100644 |
--- a/chrome/browser/metrics/metrics_log_serializer.h |
+++ b/chrome/browser/metrics/metrics_log_serializer.h |
@@ -17,7 +17,7 @@ class ListValue; |
// Serializer for persisting metrics logs to prefs. |
class MetricsLogSerializer : public MetricsLogManager::LogSerializer { |
public: |
- // Used to produce a historgram that keeps track of the status of recalling |
+ // Used to produce a histogram that keeps track of the status of recalling |
// persisted per logs. |
enum LogReadStatus { |
RECALL_SUCCESS, // We were able to correctly recall a persisted log. |
@@ -28,7 +28,7 @@ class MetricsLogSerializer : public MetricsLogManager::LogSerializer { |
LOG_STRING_CORRUPTION, // Failed to recover log string using GetAsString(). |
CHECKSUM_CORRUPTION, // Failed to verify checksum. |
CHECKSUM_STRING_CORRUPTION, // Failed to recover checksum string using |
- // GetAsString(). |
+ // GetAsString(). |
DECODE_FAIL, // Failed to decode log. |
END_RECALL_STATUS // Number of bins to use to create the histogram. |
}; |
@@ -37,10 +37,12 @@ class MetricsLogSerializer : public MetricsLogManager::LogSerializer { |
virtual ~MetricsLogSerializer(); |
// Implementation of MetricsLogManager::LogSerializer |
- virtual void SerializeLogs(const std::vector<std::string>& logs, |
- MetricsLogManager::LogType log_type) OVERRIDE; |
- virtual void DeserializeLogs(MetricsLogManager::LogType log_type, |
- std::vector<std::string>* logs) OVERRIDE; |
+ virtual void SerializeLogs( |
+ const std::vector<std::pair<std::string, std::string> >& logs, |
+ MetricsLogManager::LogType log_type) OVERRIDE; |
+ virtual void DeserializeLogs( |
+ MetricsLogManager::LogType log_type, |
+ std::vector<std::pair<std::string, std::string> >* logs) OVERRIDE; |
private: |
// Encodes the textual log data from |local_list| and writes it to the given |