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

Unified Diff: content/browser/histogram_synchronizer.cc

Issue 11682003: Serialize/Deserialize support in HistogramBase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another friend change Created 7 years, 11 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
« no previous file with comments | « chrome/common/metrics/metrics_service_base.cc ('k') | content/common/child_histogram_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/histogram_synchronizer.cc
diff --git a/content/browser/histogram_synchronizer.cc b/content/browser/histogram_synchronizer.cc
index 2fd3fea2bd66acd433e64496d78230f140a9ca20..b2db39ba5cfe2053a068e65856edb63958b96fdc 100644
--- a/content/browser/histogram_synchronizer.cc
+++ b/content/browser/histogram_synchronizer.cc
@@ -8,6 +8,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
+#include "base/pickle.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
#include "content/browser/histogram_controller.h"
@@ -272,7 +273,9 @@ void HistogramSynchronizer::OnHistogramDataCollected(
for (std::vector<std::string>::const_iterator it = pickled_histograms.begin();
it < pickled_histograms.end();
++it) {
- base::Histogram::DeserializeHistogramInfo(*it);
+ Pickle pickle(it->data(), it->size());
+ PickleIterator iter(pickle);
+ base::DeserializeHistogramAndAddSamples(&iter);
}
if (!request)
« no previous file with comments | « chrome/common/metrics/metrics_service_base.cc ('k') | content/common/child_histogram_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698