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

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

Issue 10826144: Delete both regular and Metro user data dirs on uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: factored in gab's comments Created 8 years, 4 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/util/helper.cc ('k') | chrome/installer/util/product.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/product.h
diff --git a/chrome/installer/util/product.h b/chrome/installer/util/product.h
index eabc3c9cc5be73417f86bef0f8b30fc3557986ec..aed199dfbed8af23ac601c8c8178195d8c10cf53 100644
--- a/chrome/installer/util/product.h
+++ b/chrome/installer/util/product.h
@@ -76,11 +76,15 @@ class Product {
return options_.erase(option) != 0;
}
- // Returns the path to the directory that holds the user data. This is always
- // inside "Users\<user>\Local Settings". Note that this is the default user
- // data directory and does not take into account that it can be overriden with
- // a command line parameter.
- FilePath GetUserDataPath() const;
+ // Returns the path(s) to the directory that holds the user data (primary
+ // and, if applicable to |dist|, alternate). This is always inside a user's
+ // local application data folder (e.g., "AppData\Local or "Local
+ // Settings\Application Data" in %USERPROFILE%). Note that these are the
+ // defaults and do not take into account that they can be overriden with a
+ // command line parameter. |paths| may be empty on return, but is guaranteed
+ // not to contain empty paths otherwise. If more than one path is returned,
+ // they are guaranteed to be siblings.
+ void GetUserDataPaths(std::vector<FilePath>* paths) const;
// Launches Chrome without waiting for it to exit.
bool LaunchChrome(const FilePath& application_path) const;
« no previous file with comments | « chrome/installer/util/helper.cc ('k') | chrome/installer/util/product.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698