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

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

Issue 1986823002: Reset user data directory and disk cache directory after downgrade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « chrome/installer/setup/install_worker.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/install_util.h
diff --git a/chrome/installer/util/install_util.h b/chrome/installer/util/install_util.h
index da7b379857716a5d0f44cebfb991a3f2149707bf..c68f6e25d3bc3c08fb8dce9afeca9b29c6123b1c 100644
--- a/chrome/installer/util/install_util.h
+++ b/chrome/installer/util/install_util.h
@@ -183,6 +183,21 @@ class InstallUtil {
// Returns a string in the form YYYYMMDD of the current date.
static base::string16 GetCurrentDate();
+ // Returns the highest Chrome version that was installed prior to a downgrade,
+ // or an invalid Version if Chrome was not previously downgraded from a newer
+ // version.
+ static base::Version GetDowngradeVersion(bool system_install,
+ const BrowserDistribution* dist);
+
+ // Adds or removes downgrade version registry value. This function should only
+ // be used for Chrome install.
+ static void AddUpdateDowngradeVersionItem(
+ bool system_install,
+ const base::Version* current_version,
+ const base::Version& new_version,
+ const BrowserDistribution* dist,
+ WorkItemList* list);
+
// A predicate that compares the program portion of a command line with a
// given file path. First, the file paths are compared directly. If they do
// not match, the filesystem is consulted to determine if the paths reference
« no previous file with comments | « chrome/installer/setup/install_worker.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698