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

Unified Diff: chrome/browser/profiles/profile_metrics.h

Issue 1417903006: Componentize ProfileMetrics::Counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add owners and fix Windows compile Created 5 years, 2 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/browser/DEPS ('k') | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_metrics.h
diff --git a/chrome/browser/profiles/profile_metrics.h b/chrome/browser/profiles/profile_metrics.h
index 0b3c71fc4bb7f082b4e044070f6bf9799aae60f6..c34635fbf5f87792bd04822bb1ad8dea8a53531f 100644
--- a/chrome/browser/profiles/profile_metrics.h
+++ b/chrome/browser/profiles/profile_metrics.h
@@ -19,24 +19,12 @@ namespace base {
class FilePath;
}
+namespace profile_metrics {
+struct Counts;
+}
+
class ProfileMetrics {
public:
- struct ProfileCounts {
- size_t total;
- size_t signedin;
- size_t supervised;
- size_t unused;
- size_t gaia_icon;
- size_t auth_errors;
-
- ProfileCounts()
- : total(0),
- signedin(0),
- supervised(0),
- unused(0),
- gaia_icon(0),
- auth_errors(0) {}
- };
// Enum for counting the ways users were added.
enum ProfileAdd {
@@ -213,7 +201,7 @@ class ProfileMetrics {
// Count and return summary information about the profiles currently in the
// |manager|. This information is returned in the output variable |counts|.
static bool CountProfileInformation(ProfileManager* manager,
- ProfileCounts* counts);
+ profile_metrics::Counts* counts);
#if !defined(OS_ANDROID) && !defined(OS_IOS)
static void LogNumberOfProfileSwitches();
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/profiles/profile_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698