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

Unified Diff: chrome/installer/util/install_util.h

Issue 1231973002: Force restoration of Chrome's shortcuts when Active Setup kicks in in response to a major OS upgrad… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a4_use_as_workitem
Patch Set: Created 5 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/install_util.h
diff --git a/chrome/installer/util/install_util.h b/chrome/installer/util/install_util.h
index 5a2696747a82736a8d49138774e3647a49f12e4f..20b3c3c142213d3865995416c05eac3beb47ac1a 100644
--- a/chrome/installer/util/install_util.h
+++ b/chrome/installer/util/install_util.h
@@ -40,6 +40,14 @@ class InstallUtil {
// system-level Chrome. For use only when system-level Chrome is installed.
static void TriggerActiveSetupCommand();
+ // Sets a bit in the registry to note that the latest OS upgrade notification
+ // has been handled by this user. Returns true if the previous bit was
+ // different or absent (i.e., the latest OS update wasn't handled yet), in
+ // which case subsequent calls to this method will return false until the next
+ // OS upgrade. This call is only valid on system-level installs.
+ static bool UpdateLastOSUpgradeHandledByActiveSetup(
+ BrowserDistribution* dist);
+
// Launches given exe as admin on Vista.
static bool ExecuteExeAsAdmin(const base::CommandLine& cmd, DWORD* exit_code);

Powered by Google App Engine
This is Rietveld 408576698