diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 13:08:27 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-26 13:08:27 +0000 |
commit | 0d79d799fb67b5d831561375c019657c5e71d97f (patch) | |
tree | cd74f9218ff2c12651f39f60533473fb48c2a139 /chrome | |
parent | 94d5138f955006f5cc71fc42fdf8b07b71549077 (diff) | |
download | chromium_src-0d79d799fb67b5d831561375c019657c5e71d97f.zip chromium_src-0d79d799fb67b5d831561375c019657c5e71d97f.tar.gz chromium_src-0d79d799fb67b5d831561375c019657c5e71d97f.tar.bz2 |
[win] Don't show app launcher in taskbar on Windows XP
BUG=181054
Review URL: https://chromiumcodereview.appspot.com/13069007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/ui/views/app_list/app_list_controller_win.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/app_list/app_list_controller_win.cc b/chrome/browser/ui/views/app_list/app_list_controller_win.cc index 76d27f6..b934097 100644 --- a/chrome/browser/ui/views/app_list/app_list_controller_win.cc +++ b/chrome/browser/ui/views/app_list/app_list_controller_win.cc @@ -17,6 +17,7 @@ #include "base/timer.h" #include "base/utf_string_conversions.h" #include "base/win/shortcut.h" +#include "base/win/windows_version.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/extensions/extension_prefs.h" @@ -566,6 +567,15 @@ void AppListController::PopulateViewFromProfile(Profile* profile) { false /* border_accepts_events */); HWND hwnd = GetAppListHWND(); + // Vista and lower do not offer pinning to the taskbar, which makes any + // presence on the taskbar useless. So, hide the window on the taskbar + // for these versions of Windows. + if (base::win::GetVersion() <= base::win::VERSION_VISTA) { + LONG_PTR ex_styles = GetWindowLongPtr(hwnd, GWL_EXSTYLE); + ex_styles |= WS_EX_TOOLWINDOW; + SetWindowLongPtr(hwnd, GWL_EXSTYLE, ex_styles); + } + ui::win::SetAppIdForWindow(GetAppModelId(), hwnd); CommandLine relaunch = GetAppListCommandLine(); string16 app_name(l10n_util::GetStringUTF16(IDS_APP_LIST_SHORTCUT_NAME)); |