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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 308433004: Reduce plugin_metrics_provider_ usage in MetricsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 5326973085ee8cfe2f352d1877e4aefd3cea4a3c..b98920fa98110939903ec8d856d5b9a4a98e9fce 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -1391,13 +1391,6 @@ void MetricsService::LogCleanShutdown() {
MetricsService::SHUTDOWN_COMPLETE);
}
-void MetricsService::LogPluginLoadingError(const base::FilePath& plugin_path) {
-#if defined(ENABLE_PLUGINS)
- // TODO(asvitkine): Move this out of here.
- plugin_metrics_provider_->LogPluginLoadingError(plugin_path);
-#endif
-}
-
bool MetricsService::ShouldLogEvents() {
// We simply don't log events to UMA if there is a single incognito
// session visible. The problem is that we always notify using the orginal
@@ -1414,7 +1407,6 @@ void MetricsService::RecordBooleanPrefValue(const char* path, bool value) {
void MetricsService::RecordCurrentState(PrefService* pref) {
pref->SetInt64(prefs::kStabilityLastTimestampSec, Time::Now().ToTimeT());
-#if defined(ENABLE_PLUGINS)
- plugin_metrics_provider_->RecordPluginChanges();
-#endif
+ for (size_t i = 0; i < metrics_providers_.size(); ++i)
+ metrics_providers_[i]->RecordCurrentState();
Alexei Svitkine (slow) 2014/05/29 20:47:44 I know this is what the current code does, but I'm
blundell 2014/05/30 14:42:10 I think you're better suited to make that change.
}

Powered by Google App Engine
This is Rietveld 408576698