Commit ef2b06da authored by grt@chromium.org's avatar grt@chromium.org

Fix installer variable name bugaboo.

This is a rare codepath used only by Chrome Frame uninstalls. It's rare
that it will be hit now, but leave correct code in place until the great
installer GCF cleanup rather than remove this one small piece now.

BUG=NONE
R=gab@chromium.org

Review URL: https://codereview.chromium.org/410923002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285017 0039d316-1c4b-4281-b951-d872f2087c98
parent b6c75bf8
......@@ -442,12 +442,12 @@ DeleteResult DeleteUserDataDir(const base::FilePath& user_data_dir,
if (result == DELETE_REQUIRES_REBOOT) {
ScheduleParentAndGrandparentForDeletion(user_data_dir);
} else {
const base::FilePath user_data_dir(user_data_dir.DirName());
if (!user_data_dir.empty() &&
DeleteEmptyDir(user_data_dir) == DELETE_SUCCEEDED) {
const base::FilePath product_dir(user_data_dir.DirName());
if (!product_dir.empty())
DeleteEmptyDir(product_dir);
const base::FilePath product_dir1(user_data_dir.DirName());
if (!product_dir1.empty() &&
DeleteEmptyDir(product_dir1) == DELETE_SUCCEEDED) {
const base::FilePath product_dir2(product_dir1.DirName());
if (!product_dir2.empty())
DeleteEmptyDir(product_dir2);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment