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

Side by Side Diff: chrome/browser/shell_integration_win.cc

Issue 11366047: Revert 165505 - Introduce RemoveChromeTaskbarShortcuts() to delete all pinned-to-taskbar shortcuts … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base_paths_win.cc ('k') | chrome/installer/setup/uninstall.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_TASKBAR_PINS, 212 base::DIR_APP_DATA,
213 NULL 213 L"Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar"
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
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 }
OLDNEW
« no previous file with comments | « base/base_paths_win.cc ('k') | chrome/installer/setup/uninstall.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698