summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 16:18:27 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 16:18:27 +0000
commit67da235a1f65da29dc578af28ce043af6be0fa74 (patch)
tree6c619b18d88420c9cc8e0684983e17a47bf34731 /chrome/browser/browser_main.cc
parent046009ed359d28f4d51360b9edd57dbd94cec979 (diff)
downloadchromium_src-67da235a1f65da29dc578af28ce043af6be0fa74.zip
chromium_src-67da235a1f65da29dc578af28ce043af6be0fa74.tar.gz
chromium_src-67da235a1f65da29dc578af28ce043af6be0fa74.tar.bz2
Add installer command line option to create shortcuts (desktop and quick
launch). git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 190376b..7ec1830 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -53,6 +53,7 @@
#include "chrome/installer/util/google_update_settings.h"
#include "chrome/installer/util/helper.h"
#include "chrome/installer/util/install_util.h"
+#include "chrome/installer/util/shell_util.h"
#include "chrome/installer/util/version.h"
#include "chrome/views/accelerator_handler.h"
#include "net/base/net_module.h"
@@ -167,9 +168,10 @@ int DoUninstallTasks() {
ResultCodes::ExitCode ret = ResultCodes::NORMAL_EXIT;
if (!FirstRun::RemoveSentinel())
ret = ResultCodes::UNINSTALL_DELETE_FILE_ERROR;
- if (!FirstRun::RemoveChromeDesktopShortcut())
+ // We only want to modify user level shortcuts so pass false for system_level.
+ if (!ShellUtil::RemoveChromeDesktopShortcut(ShellUtil::CURRENT_USER))
ret = ResultCodes::UNINSTALL_DELETE_FILE_ERROR;
- if (!FirstRun::RemoveChromeQuickLaunchShortcut())
+ if (!ShellUtil::RemoveChromeQuickLaunchShortcut(ShellUtil::CURRENT_USER))
ret = ResultCodes::UNINSTALL_DELETE_FILE_ERROR;
return ret;
}