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

Unified Diff: components/metrics/metrics_log_manager.cc

Issue 318993002: Merge MetricsLog and MetricsLogBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: address nits Created 6 years, 6 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 | « components/metrics/metrics_log_manager.h ('k') | components/metrics/metrics_log_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_log_manager.cc
===================================================================
--- components/metrics/metrics_log_manager.cc (revision 275424)
+++ components/metrics/metrics_log_manager.cc (working copy)
@@ -9,7 +9,7 @@
#include "base/metrics/histogram.h"
#include "base/strings/string_util.h"
#include "base/timer/elapsed_timer.h"
-#include "components/metrics/metrics_log_base.h"
+#include "components/metrics/metrics_log.h"
#include "components/metrics/metrics_pref_names.h"
namespace metrics {
@@ -54,7 +54,7 @@
MetricsLogManager::~MetricsLogManager() {}
-void MetricsLogManager::BeginLoggingWithLog(scoped_ptr<MetricsLogBase> log) {
+void MetricsLogManager::BeginLoggingWithLog(scoped_ptr<MetricsLog> log) {
DCHECK(!current_log_);
current_log_ = log.Pass();
}
@@ -101,12 +101,13 @@
current_log_.reset(paused_log_.release());
}
-void MetricsLogManager::StoreLog(std::string* log, LogType log_type) {
+void MetricsLogManager::StoreLog(std::string* log,
+ MetricsLog::LogType log_type) {
switch (log_type) {
- case MetricsLogBase::INITIAL_STABILITY_LOG:
+ case MetricsLog::INITIAL_STABILITY_LOG:
initial_log_queue_.StoreLog(log);
break;
- case MetricsLogBase::ONGOING_LOG:
+ case MetricsLog::ONGOING_LOG:
ongoing_log_queue_.StoreLog(log);
break;
}
@@ -148,4 +149,4 @@
unsent_logs_loaded_ = true;
}
-} // namespace metrics
+} // namespace metrics
« no previous file with comments | « components/metrics/metrics_log_manager.h ('k') | components/metrics/metrics_log_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698