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

Unified Diff: components/data_use_measurement/core/data_use_user_data.h

Issue 1330443002: Report data usage UMA for Chrome services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewArchServices
Patch Set: Addressing reviewer's comments. Created 5 years, 3 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: components/data_use_measurement/core/data_use_user_data.h
diff --git a/components/data_use_measurement/core/data_use_user_data.h b/components/data_use_measurement/core/data_use_user_data.h
index e4baaf66b78c2b77447fd7974f36520e3de2e4fb..6836bb5b75595267c105549f316a779766b62b0e 100644
--- a/components/data_use_measurement/core/data_use_user_data.h
+++ b/components/data_use_measurement/core/data_use_user_data.h
@@ -23,18 +23,31 @@ class DataUseUserData : public base::SupportsUserData::Data {
enum ServiceName {
NOT_TAGGED,
SUGGESTIONS,
+ TRANSLATE,
+ SYNC,
+ OMNIBOX,
+ INVALIDATION,
+ RAPPOR,
+ VARIATIONS,
+ UMA,
+ DOMAIN_RELIABILITY,
+ PROFILE_DOWNLOADER,
+ GOOGLE_URL_TRACKER,
+ AUTOFILL,
+ POLICY,
+ SPELL_CHECKER,
+ GEO_LOCATION,
};
explicit DataUseUserData(ServiceName service_type);
~DataUseUserData() override;
// Helper function to create DataUseUserData. The caller takes the ownership
- // of
- // the returned object.
+ // of the returned object.
static base::SupportsUserData::Data* Create(
DataUseUserData::ServiceName service);
- // Return the service name of the ServiceType enum.
+ // Return the service name of the ServiceName enum.
static const char* GetServiceNameAsString(ServiceName service);
// Services should use this function to attach their |service_type| to the

Powered by Google App Engine
This is Rietveld 408576698