Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2480713003: Window prerequisites for ShelfWindowWatcher panel support. (Closed)
Patch Set: Fix ShellSurface KAppIdKey use; remove local application_id_. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/mus/desktop_window_tree_host_mus.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus.cc b/ui/views/mus/desktop_window_tree_host_mus.cc
index 478dfb93fa70c09ad16107f3db46aa0226626030..d2f236b0e615a10c3cddd769d5efc0a5ce1a9e86 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -14,6 +14,7 @@
#include "ui/views/corewm/tooltip_aura.h"
#include "ui/views/mus/mus_client.h"
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
+#include "ui/views/widget/native_widget_aura.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/wm/core/window_util.h"
#include "ui/wm/public/activation_client.h"
@@ -304,14 +305,7 @@ void DesktopWindowTreeHostMus::SetOpacity(float opacity) {
void DesktopWindowTreeHostMus::SetWindowIcons(const gfx::ImageSkia& window_icon,
const gfx::ImageSkia& app_icon) {
- if (window_icon.isNull() && app_icon.isNull()) {
- window()->ClearProperty(aura::client::kWindowIconKey);
- return;
- }
-
- window()->SetProperty(
- aura::client::kWindowIconKey,
- new gfx::ImageSkia(!window_icon.isNull() ? window_icon : app_icon));
+ NativeWidgetAura::AssignIconToAuraWindow(window(), window_icon, app_icon);
}
void DesktopWindowTreeHostMus::InitModalType(ui::ModalType modal_type) {

Powered by Google App Engine
This is Rietveld 408576698