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

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

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 | « 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
525 // This will remove all secondary tiles from the start screen for |dist|. 518 // This will remove all secondary tiles from the start screen for |dist|.
526 static void RemoveChromeStartScreenShortcuts(BrowserDistribution* dist, 519 static void RemoveChromeStartScreenShortcuts(BrowserDistribution* dist,
527 const string16& chrome_exe); 520 const string16& chrome_exe);
528 521
529 // Sets |suffix| to the base 32 encoding of the md5 hash of this user's sid 522 // Sets |suffix| to the base 32 encoding of the md5 hash of this user's sid
530 // preceded by a dot. 523 // preceded by a dot.
531 // This is guaranteed to be unique on the machine and 27 characters long 524 // This is guaranteed to be unique on the machine and 27 characters long
532 // (including the '.'). 525 // (including the '.').
533 // This suffix is then meant to be added to all registration that may conflict 526 // This suffix is then meant to be added to all registration that may conflict
534 // with another user-level Chrome install. 527 // with another user-level Chrome install.
(...skipping 20 matching lines...) Expand all
555 // required by the base32 standard for inputs that aren't a multiple of 5 548 // required by the base32 standard for inputs that aren't a multiple of 5
556 // bytes. 549 // bytes.
557 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); 550 static string16 ByteArrayToBase32(const uint8* bytes, size_t size);
558 551
559 private: 552 private:
560 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 553 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
561 }; 554 };
562 555
563 556
564 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 557 #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