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

Unified Diff: chrome/installer/util/auto_launch_util.cc

Issue 10826144: Delete both regular and Metro user data dirs on uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/installer/util/auto_launch_util.cc
diff --git a/chrome/installer/util/auto_launch_util.cc b/chrome/installer/util/auto_launch_util.cc
index fdbf96ea82a1fd8214a23a6e65b1f09b9a7ca387..70546c64d76dbe8f2f1d0742af90caee4e300bdd 100644
--- a/chrome/installer/util/auto_launch_util.cc
+++ b/chrome/installer/util/auto_launch_util.cc
@@ -50,7 +50,10 @@ string16 ProfileToKeyName(const string16& profile_directory) {
BrowserDistribution::GetSpecificDistribution(
BrowserDistribution::CHROME_BROWSER);
installer::Product product(distribution);
- path = product.GetUserDataPath();
+ std::vector<FilePath> data_dir_paths;
+ product.GetUserDataPaths(&data_dir_paths);
+ if (!data_dir_paths.empty())
+ path = data_dir_paths[0];
}
path = path.Append(profile_directory);

Powered by Google App Engine
This is Rietveld 408576698