Index: chrome/browser/first_run/first_run_win.cc |
diff --git a/chrome/browser/first_run/first_run_win.cc b/chrome/browser/first_run/first_run_win.cc |
index fbd92bc10deb3388779a0d1f4a4d685a8d06236d..f96ce3dc9c1fa32af7b7003e980ee3f5960a74d6 100644 |
--- a/chrome/browser/first_run/first_run_win.cc |
+++ b/chrome/browser/first_run/first_run_win.cc |
@@ -111,16 +111,11 @@ bool CreateChromeDesktopShortcut() { |
BrowserDistribution* dist = BrowserDistribution::GetDistribution(); |
if (!dist || !dist->CanCreateDesktopShortcuts()) |
return false; |
- return ShellUtil::CreateChromeDesktopShortcut( |
- dist, |
- chrome_exe.value(), |
- dist->GetAppDescription(), |
- L"", |
- L"", |
- chrome_exe.value(), |
- dist->GetIconIndex(), |
- ShellUtil::CURRENT_USER, |
- ShellUtil::SHORTCUT_CREATE_ALWAYS); |
+ ShellUtil::ChromeShortcutProperties properties; |
+ properties.set_target(chrome_exe); |
+ return ShellUtil::CreateOrUpdateChromeShortcut( |
+ ShellUtil::SHORTCUT_DESKTOP, dist, properties, |
+ ShellUtil::SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL); |
} |
// Creates the quick launch shortcut to chrome for the current user. Returns |
@@ -130,11 +125,11 @@ bool CreateChromeQuickLaunchShortcut() { |
if (!PathService::Get(base::FILE_EXE, &chrome_exe)) |
return false; |
BrowserDistribution* dist = BrowserDistribution::GetDistribution(); |
- return ShellUtil::CreateChromeQuickLaunchShortcut( |
- dist, |
- chrome_exe.value(), |
- ShellUtil::CURRENT_USER, // create only for current user. |
- ShellUtil::SHORTCUT_CREATE_ALWAYS); |
+ ShellUtil::ChromeShortcutProperties properties; |
+ properties.set_target(chrome_exe); |
+ return ShellUtil::CreateOrUpdateChromeShortcut( |
+ ShellUtil::SHORTCUT_QUICK_LAUNCH, dist, properties, |
+ ShellUtil::SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL); |
} |
void PlatformSetup(Profile* profile) { |