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

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 10836247: Refactor ShellUtil shortcut code -- single multi-purpose methods as opposed to many slighlty diffe… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some 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 | « no previous file | chrome/browser/first_run/first_run_win.cc » ('j') | chrome/installer/setup/install.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index a03619dade95264634bcf9a49ca3509a770c3ad3..a1f64da66d90a320afa8f5c534ec5cb86abc55ab 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -128,13 +128,13 @@ int DoUninstallTasks(bool chrome_still_running) {
// We want to remove user level shortcuts and we only care about the ones
// created by us and not by the installer so |alternate| is false.
BrowserDistribution* dist = BrowserDistribution::GetDistribution();
- if (!ShellUtil::RemoveChromeDesktopShortcut(
- dist, ShellUtil::CURRENT_USER, ShellUtil::SHORTCUT_NO_OPTIONS)) {
+ if (!ShellUtil::RemoveChromeShortcut(ShellUtil::SHORTCUT_DESKTOP, dist,
+ ShellUtil::SHORTCUT_NO_OPTIONS)) {
VLOG(1) << "Failed to delete desktop shortcut.";
}
// TODO(hallielaine): Cleanup profiles shortcuts.
- if (!ShellUtil::RemoveChromeQuickLaunchShortcut(dist,
- ShellUtil::CURRENT_USER)) {
+ if (!ShellUtil::RemoveChromeShortcut(ShellUtil::SHORTCUT_QUICK_LAUNCH, dist,
+ ShellUtil::SHORTCUT_NO_OPTIONS)) {
VLOG(1) << "Failed to delete quick launch shortcut.";
}
}
« no previous file with comments | « no previous file | chrome/browser/first_run/first_run_win.cc » ('j') | chrome/installer/setup/install.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698