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

Unified Diff: chrome/browser/profiles/profile_shortcut_manager.h

Issue 11633041: Show a delete shortcut checkbox when editing a profile that has a shortcut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months 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 side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698