diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-25 00:37:02 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-25 00:37:02 +0000 |
commit | fe8fa4c54238b86c22940e7fd672b4b44846083c (patch) | |
tree | 37f2df5c2ba2338de01c830c2d688f372ef858de /app | |
parent | 8934a3b023fe473245c46edf3e7671552bf61188 (diff) | |
download | chromium_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 'app')
-rw-r--r-- | app/win_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/win_util.cc b/app/win_util.cc index 4ad8b27..3e00b95 100644 --- a/app/win_util.cc +++ b/app/win_util.cc @@ -837,7 +837,7 @@ gfx::Font GetWindowTitleFont() { void SetAppIdForWindow(const std::wstring& app_id, HWND hwnd) { // This functionality is only available on Win7+. - if (win_util::GetWinVersion() != win_util::WINVERSION_WIN7) + if (win_util::GetWinVersion() < win_util::WINVERSION_WIN7) return; // Load Shell32.dll into memory. |