diff options
Diffstat (limited to 'views/window/window_win.cc')
-rw-r--r-- | views/window/window_win.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc index 40781a8..635aedb 100644 --- a/views/window/window_win.cc +++ b/views/window/window_win.cc @@ -427,7 +427,12 @@ void WindowWin::UpdateWindowIcon() { reinterpret_cast<LPARAM>(windows_icon))); if (old_icon) DestroyIcon(old_icon); - old_icon = reinterpret_cast<HICON>( + } + + icon = window_delegate_->GetWindowAppIcon(); + if (!icon.isNull()) { + HICON windows_icon = IconUtil::CreateHICONFromSkBitmap(icon); + HICON old_icon = reinterpret_cast<HICON>( SendMessage(GetNativeView(), WM_SETICON, ICON_BIG, reinterpret_cast<LPARAM>(windows_icon))); if (old_icon) |