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

Unified Diff: chrome/browser/profiles/gaia_info_update_service.cc

Issue 1874353002: Revert of Stop chrome from logging profile counts too many times at startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/gaia_info_update_service.cc
diff --git a/chrome/browser/profiles/gaia_info_update_service.cc b/chrome/browser/profiles/gaia_info_update_service.cc
index 2677a5fa8285c05c7848fa22492fa7c9640740a8..f75fc93de4c045d741d31bbacc401cbbf67c9efa 100644
--- a/chrome/browser/profiles/gaia_info_update_service.cc
+++ b/chrome/browser/profiles/gaia_info_update_service.cc
@@ -52,6 +52,9 @@
}
void GAIAInfoUpdateService::Update() {
+ // UMA Profile Metrics should be logged regularly.
+ ProfileMetrics::LogNumberOfProfiles(g_browser_process->profile_manager());
+
// The user must be logged in.
SigninManagerBase* signin_manager =
SigninManagerFactory::GetForProfile(profile_);
@@ -211,14 +214,6 @@
else
delta = desired_delta - update_delta;
- // UMA Profile Metrics should be logged regularly. Logging is not performed
- // in Update() because it is a public method and may be called at any time.
- // These metrics should logged only on this schedule.
- //
- // In mac perf tests, the browser process pointer may be null.
- if (g_browser_process)
- ProfileMetrics::LogNumberOfProfiles(g_browser_process->profile_manager());
-
timer_.Start(FROM_HERE, delta, this, &GAIAInfoUpdateService::Update);
}
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698