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

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: Small tweak before review 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
« no previous file with comments | « chrome/installer/util/google_update_settings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..63551c30c984d777eea87dec5215ba4aed9e8b1e 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.
@@ -557,22 +557,22 @@ void GoogleUpdateSettings::UpdateProfileCounts(int profiles_active,
WriteGoogleUpdateAggregateNumKeyInternal(
dist->GetAppRegistrationData(),
google_update::kRegProfilesActive,
- profiles_active,
+ (int)profiles_active,
L"sum()");
WriteGoogleUpdateAggregateNumKeyInternal(
dist->GetAppRegistrationData(),
google_update::kRegProfilesSignedIn,
- profiles_signedin,
+ (int)profiles_signedin,
L"sum()");
} else {
// Write the counts as strings since no aggregation function is needed for
// 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));
}
}
« no previous file with comments | « chrome/installer/util/google_update_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698