summaryrefslogtreecommitdiffstats
path: root/chrome/browser/user_data_manager.h
diff options
context:
space:
mode:
authorxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 00:37:02 +0000
committerxiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 00:37:02 +0000
commitfe8fa4c54238b86c22940e7fd672b4b44846083c (patch)
tree37f2df5c2ba2338de01c830c2d688f372ef858de /chrome/browser/user_data_manager.h
parent8934a3b023fe473245c46edf3e7671552bf61188 (diff)
downloadchromium_src-fe8fa4c54238b86c22940e7fd672b4b44846083c.zip
chromium_src-fe8fa4c54238b86c22940e7fd672b4b44846083c.tar.gz
chromium_src-fe8fa4c54238b86c22940e7fd672b4b44846083c.tar.bz2
Fix issue 32106
Issue 32106 happens when user creates a browser window without creating desktop shortcut. In this case, Windows does not have sufficient relaunching info to support pinning the browser window. The fix is to create a shortcut in "User Pinned" folder which Win7 watches and would get relaunch info from it. Also fix a minor bug in win_util::SetAppIdForWindow that would make the function only work for Win7 but not above. BUG=32106 TEST=Verify fix for 32106. See comemnts #1 and #5 for repro steps. Review URL: http://codereview.chromium.org/660038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/user_data_manager.h')
-rw-r--r--chrome/browser/user_data_manager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/user_data_manager.h b/chrome/browser/user_data_manager.h
index f7dfe17..edd63e9 100644
--- a/chrome/browser/user_data_manager.h
+++ b/chrome/browser/user_data_manager.h
@@ -14,6 +14,7 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
+class FilePath;
class MessageLoop;
// Provides an abstraction of profiles on top of the user data directory
@@ -51,6 +52,11 @@ class UserDataManager {
// This function should be called on the file thread.
void GetProfiles(std::vector<std::wstring>* profiles) const;
+ // Creates a shortcut for the given profile name in |folder|.
+ // Returns false if the shortcut creation fails; true otherwise.
+ bool CreateShortcutForProfileInFolder(const FilePath& folder,
+ const std::wstring& profile_name) const;
+
// Creates a desktop shortcut for the given profile name.
// Returns false if the shortcut creation fails; true otherwise.
bool CreateDesktopShortcutForProfile(const std::wstring& profile_name) const;