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

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

Issue 2143893002: Purge the App Launcher code from Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 years, 5 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 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(),

Powered by Google App Engine
This is Rietveld 408576698