diff options
author | holte@chromium.org <holte@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 01:12:45 +0000 |
---|---|---|
committer | holte@chromium.org <holte@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 01:12:45 +0000 |
commit | 7f07db6db3e9e328b5a307d5e153af7fe3b8c00a (patch) | |
tree | cedc6e50b55143537bd631c8ff14f3546b25708a /components/metrics.gypi | |
parent | 22cbd7536e899489c8e5f0a9ad5654bea20ed7e3 (diff) | |
download | chromium_src-7f07db6db3e9e328b5a307d5e153af7fe3b8c00a.zip chromium_src-7f07db6db3e9e328b5a307d5e153af7fe3b8c00a.tar.gz chromium_src-7f07db6db3e9e328b5a307d5e153af7fe3b8c00a.tar.bz2 |
Extract logs persistence code to metrics component.
This extracts the code for storing persisting a list of unsent logs in
preference, and refactors the code that depends on it.
The SerializedLog class is changed to a private type LogHashPair in PersistedLogs.
The PersistedLogs class replaces the MetricsLogSerializer class, and additionally
takes ownership of the list of logs being managed.
With the current implementation, when a log is staged, it is not removed from
the PersistedLogs object, and is instead removed when the staged log is
discarded. This removes the need for provisionally storing the staged log if
it is currently being uploaded when shutting down.
BUG=372911
Review URL: https://codereview.chromium.org/178833004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/metrics.gypi')
-rw-r--r-- | components/metrics.gypi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/metrics.gypi b/components/metrics.gypi index e0fe848..61e9855 100644 --- a/components/metrics.gypi +++ b/components/metrics.gypi @@ -21,6 +21,10 @@ 'metrics/metrics_log_base.h', 'metrics/metrics_log_manager.cc', 'metrics/metrics_log_manager.h', + 'metrics/metrics_pref_names.cc', + 'metrics/metrics_pref_names.h', + 'metrics/persisted_logs.cc', + 'metrics/persisted_logs.h', ], }, { |