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

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

Issue 11743022: Windows: Remove desktop profile shortcuts (and any others pointing to the exe) on uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 12 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/install_util.h ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/install_util.cc
===================================================================
--- chrome/installer/util/install_util.cc (revision 174984)
+++ chrome/installer/util/install_util.cc (working copy)
@@ -569,8 +569,12 @@
return false;
}
+ return EvaluatePath(program);
+}
+
+bool InstallUtil::ProgramCompare::EvaluatePath(const FilePath& path) const {
// Try the simple thing first: do the paths happen to match?
- if (FilePath::CompareEqualIgnoreCase(path_to_match_.value(), program.value()))
+ if (FilePath::CompareEqualIgnoreCase(path_to_match_.value(), path.value()))
return true;
// If the paths don't match and we couldn't open the expected file, we've done
@@ -582,7 +586,7 @@
base::win::ScopedHandle handle;
BY_HANDLE_FILE_INFORMATION info = {};
- return (OpenForInfo(program, &handle) &&
+ return (OpenForInfo(path, &handle) &&
GetInfo(handle, &info) &&
info.dwVolumeSerialNumber == file_info_.dwVolumeSerialNumber &&
info.nFileIndexHigh == file_info_.nFileIndexHigh &&
« no previous file with comments | « chrome/installer/util/install_util.h ('k') | chrome/installer/util/shell_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698