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

Side by Side Diff: chrome/installer/util/shell_util.h

Issue 11275333: Merge 166285 - Re-commit: Introduce RemoveChromeTaskbarShortcuts() to delete all pinned-to-taskbar … (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/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 | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/shell_util.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 // This file declares methods that are useful for integrating Chrome in 5 // This file declares methods that are useful for integrating Chrome in
6 // Windows shell. These methods are all static and currently part of 6 // Windows shell. These methods are all static and currently part of
7 // ShellUtil class. 7 // ShellUtil class.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // is deleted. 508 // is deleted.
509 // Also attempts to unpin the removed shortcut from the taskbar. 509 // Also attempts to unpin the removed shortcut from the taskbar.
510 // Returns true if the shortcut was successfully deleted (or there is no 510 // Returns true if the shortcut was successfully deleted (or there is no
511 // shortcut at |location| pointing to |chrome_exe|). 511 // shortcut at |location| pointing to |chrome_exe|).
512 static bool RemoveChromeShortcut(ChromeShortcutLocation location, 512 static bool RemoveChromeShortcut(ChromeShortcutLocation location,
513 BrowserDistribution* dist, 513 BrowserDistribution* dist,
514 const string16& chrome_exe, 514 const string16& chrome_exe,
515 ShellChange level, 515 ShellChange level,
516 const string16* shortcut_name); 516 const string16* shortcut_name);
517 517
518 // Enumerates all shortcuts pinned to the taskbar and deletes those pointing
519 // to |chrome_exe|.
520 // base::win::TaskbarUnpinShortcutLink() should be prefered, but this is
521 // useful on uninstall as the parent shortcut of a pin might no longer exist
522 // (thus making it impossible to unpin it via that API).
523 static void RemoveChromeTaskbarShortcuts(const string16& chrome_exe);
524
518 // This will remove all secondary tiles from the start screen for |dist|. 525 // This will remove all secondary tiles from the start screen for |dist|.
519 static void RemoveChromeStartScreenShortcuts(BrowserDistribution* dist, 526 static void RemoveChromeStartScreenShortcuts(BrowserDistribution* dist,
520 const string16& chrome_exe); 527 const string16& chrome_exe);
521 528
522 // Sets |suffix| to the base 32 encoding of the md5 hash of this user's sid 529 // Sets |suffix| to the base 32 encoding of the md5 hash of this user's sid
523 // preceded by a dot. 530 // preceded by a dot.
524 // This is guaranteed to be unique on the machine and 27 characters long 531 // This is guaranteed to be unique on the machine and 27 characters long
525 // (including the '.'). 532 // (including the '.').
526 // This suffix is then meant to be added to all registration that may conflict 533 // This suffix is then meant to be added to all registration that may conflict
527 // with another user-level Chrome install. 534 // with another user-level Chrome install.
(...skipping 20 matching lines...) Expand all
548 // required by the base32 standard for inputs that aren't a multiple of 5 555 // required by the base32 standard for inputs that aren't a multiple of 5
549 // bytes. 556 // bytes.
550 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); 557 static string16 ByteArrayToBase32(const uint8* bytes, size_t size);
551 558
552 private: 559 private:
553 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 560 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
554 }; 561 };
555 562
556 563
557 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 564 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698