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

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

Issue 2203003003: Get AcceleratorControllerTest working with mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 4 months 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
« no previous file with comments | « ash/test/ash_test_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index 31a680259d7b3005a3c2ff57422e5f0b1cf9db0e..fe8faed0c68ef44acd9aebc8f5f2f04517fc3e9a 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -648,9 +648,13 @@ void NativeWidgetMus::ConfigurePropertiesForNewWindow(
(*properties)[ui::mojom::WindowManager::kWindowType_Property] =
mojo::ConvertTo<std::vector<uint8_t>>(static_cast<int32_t>(
mojo::ConvertTo<ui::mojom::WindowType>(init_params.type)));
- (*properties)[ui::mojom::WindowManager::kResizeBehavior_Property] =
- mojo::ConvertTo<std::vector<uint8_t>>(
- ResizeBehaviorFromDelegate(init_params.delegate));
+ if (!init_params.delegate &&
+ properties->count(ui::mojom::WindowManager::kResizeBehavior_Property) ==
+ 0) {
+ (*properties)[ui::mojom::WindowManager::kResizeBehavior_Property] =
+ mojo::ConvertTo<std::vector<uint8_t>>(
+ ResizeBehaviorFromDelegate(init_params.delegate));
+ }
SkBitmap app_icon = AppIconFromDelegate(init_params.delegate);
if (!app_icon.isNull()) {
(*properties)[ui::mojom::WindowManager::kWindowAppIcon_Property] =
« no previous file with comments | « ash/test/ash_test_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698