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

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: cr Created 4 years, 7 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 79b8e2a2304f8755ce5a038b18da275ec1ddd017..84ab97718bb421900897f6132e0bdd22ef50941f 100644
--- a/chrome/installer/util/install_util.h
+++ b/chrome/installer/util/install_util.h
@@ -183,6 +183,19 @@ class InstallUtil {
// Returns a string in the form YYYYMMDD of the current date.
static base::string16 GetCurrentDate();
+ // Return downgrade version if the value exists or empty version.
grt (UTC plus 2) 2016/05/20 15:25:05 "Returns..." as per https://google.github.io/style
zmin 2016/05/20 16:33:06 Done.
+ static base::Version GetDowngradeVersion(HKEY root,
+ const BrowserDistribution* dist);
+
+ // Add or remove downgrade version registry value. This function should only
grt (UTC plus 2) 2016/05/20 15:25:05 "Adds or removes..."
zmin 2016/05/20 16:33:06 Done.
+ // be used for Chrome install.
+ static void AddUpdateDowngradeVersionItem(
+ HKEY root,
+ 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

Powered by Google App Engine
This is Rietveld 408576698