| 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 817212d6503a3123123c978a63de13e1100f404e..0ab8bddaf5f1149c52008f1faa8608eda3984124 100644
|
| --- a/chrome/installer/util/google_update_settings.cc
|
| +++ b/chrome/installer/util/google_update_settings.cc
|
| @@ -222,13 +222,18 @@ bool GetUpdatePolicyFromDword(
|
| }
|
| #endif // defined(GOOGLE_CHROME_BUILD)
|
|
|
| +bool UpdateDidRunStateForApp(const AppRegistrationData& app_reg_data,
|
| + bool did_run) {
|
| + return WriteGoogleUpdateStrKeyInternal(
|
| + app_reg_data, google_update::kRegDidRunField, did_run ? L"1" : L"0");
|
| +}
|
| +
|
| // Convenience routine: GoogleUpdateSettings::UpdateDidRunStateForApp()
|
| // specialized for Chrome Binaries.
|
| bool UpdateDidRunStateForBinaries(bool did_run) {
|
| BrowserDistribution* dist = BrowserDistribution::GetSpecificDistribution(
|
| BrowserDistribution::CHROME_BINARIES);
|
| - return GoogleUpdateSettings::UpdateDidRunStateForApp(
|
| - dist->GetAppRegistrationData(), did_run);
|
| + return UpdateDidRunStateForApp(dist->GetAppRegistrationData(), did_run);
|
| }
|
|
|
| } // namespace
|
| @@ -479,14 +484,6 @@ bool GoogleUpdateSettings::ClearReferral() {
|
| return ClearGoogleUpdateStrKey(google_update::kRegReferralField);
|
| }
|
|
|
| -bool GoogleUpdateSettings::UpdateDidRunStateForApp(
|
| - const AppRegistrationData& app_reg_data,
|
| - bool did_run) {
|
| - return WriteGoogleUpdateStrKeyInternal(app_reg_data,
|
| - google_update::kRegDidRunField,
|
| - did_run ? L"1" : L"0");
|
| -}
|
| -
|
| bool GoogleUpdateSettings::UpdateDidRunState(bool did_run, bool system_level) {
|
| BrowserDistribution* dist = BrowserDistribution::GetDistribution();
|
| bool result = UpdateDidRunStateForApp(dist->GetAppRegistrationData(),
|
|
|