Index: chrome/browser/profiles/profile_shortcut_manager.h |
=================================================================== |
--- chrome/browser/profiles/profile_shortcut_manager.h (revision 175855) |
+++ chrome/browser/profiles/profile_shortcut_manager.h (working copy) |
@@ -5,6 +5,7 @@ |
#ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_ |
#define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_ |
+#include "base/callback.h" |
#include "base/file_path.h" |
#include "base/string16.h" |
#include "chrome/browser/profiles/profile_info_cache.h" |
@@ -20,6 +21,17 @@ |
// profile created. |
virtual void CreateProfileShortcut(const FilePath& profile_path) = 0; |
+ // Removes any desktop profile shortcuts for the profile corresponding to |
+ // |profile_path|. |
+ virtual void RemoveProfileShortcuts(const FilePath& profile_path) = 0; |
+ |
+ // Checks if a profile at |profile_path| has any shortcuts and invokes |
+ // |callback| with the bool result some time later. Does not consider |
+ // non-profile specific shortcuts. |
+ virtual void HasProfileShortcuts( |
+ const FilePath& profile_path, |
+ const base::Callback<void(bool)>& callback) = 0; |
+ |
static bool IsFeatureEnabled(); |
static ProfileShortcutManager* Create(ProfileManager* manager); |