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)); |
} |
} |