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

Unified Diff: chrome/installer/util/update_active_setup_version_work_item.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/update_active_setup_version_work_item.h
diff --git a/chrome/installer/util/update_active_setup_version_work_item.h b/chrome/installer/util/update_active_setup_version_work_item.h
index e0bfdc47e73a238f43e2110bf1c9eca5abb207da..af3427c7fccae6f9da09e684703f18e237291afb 100644
--- a/chrome/installer/util/update_active_setup_version_work_item.h
+++ b/chrome/installer/util/update_active_setup_version_work_item.h
@@ -17,6 +17,18 @@
// in today's "private constructor + creator friends" WorkItem model :-(.
class UpdateActiveSetupVersionWorkItem : public SetRegValueWorkItem {
public:
+ // The components of the Active Setup Version entry, in order.
+ enum VersionComponent {
+ // The major version.
+ MAJOR,
+ // Unused component, always 0 for now.
+ UNUSED1,
+ // Number of OS upgrades handled since original install.
+ OS_UPGRADES,
+ // Unused component, always 0 for now.
+ UNUSED2,
+ };
+
// The operation to be performed by this UpdateActiveSetupVersionWorkItem.
enum Operation {
// Update (or install if not present) the Active Setup "Version" in the
@@ -34,18 +46,6 @@ class UpdateActiveSetupVersionWorkItem : public SetRegValueWorkItem {
Operation operation);
private:
- // The components of the Active Setup Version entry, in order.
- enum ActiveSetupVersionComponent {
- // The major version.
- MAJOR,
- // Unused component, always 0 for now.
- UNUSED1,
- // Number of OS upgrades handled since original install.
- OS_UPGRADES,
- // Unused component, always 0 for now.
- UNUSED2,
- };
-
// Returns the updated Active Setup version to be used based on the
// |existing_version|.
base::string16 GetUpdatedActiveSetupVersion(
« chrome/installer/util/install_util.cc ('K') | « chrome/installer/util/install_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698