summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile_manager.h
diff options
context:
space:
mode:
authorhallielaine@chromium.org <hallielaine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-04 23:42:12 +0000
committerhallielaine@chromium.org <hallielaine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-04 23:42:12 +0000
commit6a400a4ae02ec685107c738ff8b842592ac50550 (patch)
tree274c812fe9514f8d50f801fd2bb5acf63332d955 /chrome/browser/profiles/profile_manager.h
parenta2beeb67234f2f001aa828dd2187dc4dd1e9c3cf (diff)
downloadchromium_src-6a400a4ae02ec685107c738ff8b842592ac50550.zip
chromium_src-6a400a4ae02ec685107c738ff8b842592ac50550.tar.gz
chromium_src-6a400a4ae02ec685107c738ff8b842592ac50550.tar.bz2
Create chrome Windows desktop shortcuts through a checkbox in create/manager profile dialog
sail: profiles jhawkins: webui, resources/options ben: automation, chrome/common OWNERS approval (1 line formatting changes) BUG=133585 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/10918018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154853 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_manager.h')
-rw-r--r--chrome/browser/profiles/profile_manager.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h
index 4fc4ee3..203c932 100644
--- a/chrome/browser/profiles/profile_manager.h
+++ b/chrome/browser/profiles/profile_manager.h
@@ -163,8 +163,10 @@ class ProfileManager : public base::NonThreadSafe,
// Directories are named "profile_1", "profile_2", etc., in sequence of
// creation. (Because directories can be removed, however, it may be the case
// that at some point the list of numbered profiles is not continuous.)
- static void CreateMultiProfileAsync(const string16& name,
- const string16& icon_url);
+ static void CreateMultiProfileAsync(
+ const string16& name,
+ const string16& icon_url,
+ const CreateCallback& callback);
// Register multi-profile related preferences in Local State.
static void RegisterPrefs(PrefService* prefs);
@@ -173,6 +175,10 @@ class ProfileManager : public base::NonThreadSafe,
// about profiles without having to load them from disk.
ProfileInfoCache& GetProfileInfoCache();
+ // Returns a ProfileShortcut Manager that enables the caller to create
+ // profile specfic desktop shortcuts.
+ ProfileShortcutManager* profile_shortcut_manager();
+
// Schedules the profile at the given path to be deleted on shutdown.
void ScheduleProfileForDeletion(const FilePath& profile_dir);
@@ -220,6 +226,8 @@ class ProfileManager : public base::NonThreadSafe,
scoped_ptr<Profile> profile;
// Whether profile has been fully loaded (created and initialized).
bool created;
+ // Whether or not this profile should have a shortcut.
+ bool create_shortcut;
// List of callbacks to run when profile initialization is done. Note, when
// profile is fully loaded this vector will be empty.
std::vector<CreateCallback> callbacks;