| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/shell_integration.h" | 5 #include "chrome/browser/shell_integration.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shobjidl.h> | 8 #include <shobjidl.h> |
| 9 #include <propkey.h> | 9 #include <propkey.h> |
| 10 #include <propvarutil.h> | 10 #include <propvarutil.h> |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 FilePath chrome_exe; | 202 FilePath chrome_exe; |
| 203 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) | 203 if (!PathService::Get(base::FILE_EXE, &chrome_exe)) |
| 204 return; | 204 return; |
| 205 | 205 |
| 206 // Locations to check for shortcuts migration. | 206 // Locations to check for shortcuts migration. |
| 207 static const struct { | 207 static const struct { |
| 208 int location_id; | 208 int location_id; |
| 209 const wchar_t* sub_dir; | 209 const wchar_t* sub_dir; |
| 210 } kLocations[] = { | 210 } kLocations[] = { |
| 211 { | 211 { |
| 212 base::DIR_APP_DATA, | 212 base::DIR_TASKBAR_PINS, |
| 213 L"Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar" | 213 NULL |
| 214 }, { | 214 }, { |
| 215 base::DIR_USER_DESKTOP, | 215 base::DIR_USER_DESKTOP, |
| 216 NULL | 216 NULL |
| 217 }, { | 217 }, { |
| 218 base::DIR_START_MENU, | 218 base::DIR_START_MENU, |
| 219 NULL | 219 NULL |
| 220 }, { | 220 }, { |
| 221 base::DIR_APP_DATA, | 221 base::DIR_APP_DATA, |
| 222 L"Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\StartMenu" | 222 L"Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\StartMenu" |
| 223 } | 223 } |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 } | 456 } |
| 457 | 457 |
| 458 shortcut = shortcut.Append(shortcut_name).Append(shortcut_name + | 458 shortcut = shortcut.Append(shortcut_name).Append(shortcut_name + |
| 459 installer::kLnkExt); | 459 installer::kLnkExt); |
| 460 if (file_util::PathExists(shortcut)) | 460 if (file_util::PathExists(shortcut)) |
| 461 return shortcut; | 461 return shortcut; |
| 462 } | 462 } |
| 463 | 463 |
| 464 return FilePath(); | 464 return FilePath(); |
| 465 } | 465 } |
| OLD | NEW |