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

Unified Diff: chrome/installer/util/google_update_settings.cc

Issue 593243002: Profile_Metrics integration with Keystone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better creation of KSReportingAttributes Created 5 years, 10 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/installer/util/google_update_settings.cc
diff --git a/chrome/installer/util/google_update_settings.cc b/chrome/installer/util/google_update_settings.cc
index 7b2fbc3a66116aaed2e5d4da2759593284afca18..6c9bf678ac29e59d43005f4a94c995bbaa34e44f 100644
--- a/chrome/installer/util/google_update_settings.cc
+++ b/chrome/installer/util/google_update_settings.cc
@@ -546,8 +546,8 @@ bool GoogleUpdateSettings::UpdateGoogleUpdateApKey(
return modified;
}
-void GoogleUpdateSettings::UpdateProfileCounts(int profiles_active,
- int profiles_signedin) {
+void GoogleUpdateSettings::UpdateProfileCounts(size_t profiles_active,
+ size_t profiles_signedin) {
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
// System-level installs must write into the ClientStateMedium key shared by
// all users. Special treatment is used to aggregate across those users.
@@ -569,10 +569,10 @@ void GoogleUpdateSettings::UpdateProfileCounts(int profiles_active,
// user-level installs.
WriteGoogleUpdateStrKeyInternal(dist->GetAppRegistrationData(),
google_update::kRegProfilesActive,
- base::IntToString16(profiles_active));
+ base::SizeTToString16(profiles_active));
WriteGoogleUpdateStrKeyInternal(dist->GetAppRegistrationData(),
google_update::kRegProfilesSignedIn,
- base::IntToString16(profiles_signedin));
+ base::SizeTToString16(profiles_signedin));
}
}

Powered by Google App Engine
This is Rietveld 408576698