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

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

Issue 2702423004: Validate incoming window properties. (Closed)
Patch Set: sky comments Created 3 years, 10 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 | « ui/aura/mus/window_tree_client_unittest.cc ('k') | ui/wm/core/shadow_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/mus_client.cc
diff --git a/ui/views/mus/mus_client.cc b/ui/views/mus/mus_client.cc
index 15ce36bfc986e7032acc42d9e57ee088ce8b6ff6..cc3624b70d4f9396114a83f54db72ad679230cd0 100644
--- a/ui/views/mus/mus_client.cc
+++ b/ui/views/mus/mus_client.cc
@@ -81,7 +81,8 @@ MusClient::MusClient(service_manager::Connector* connector,
property_converter_ = base::MakeUnique<aura::PropertyConverter>();
property_converter_->RegisterProperty(
wm::kShadowElevationKey,
- ui::mojom::WindowManager::kShadowElevation_Property);
+ ui::mojom::WindowManager::kShadowElevation_Property,
+ base::Bind(&wm::IsValidShadowElevation));
if (create_wm_state)
wm_state_ = base::MakeUnique<wm::WMState>();
« no previous file with comments | « ui/aura/mus/window_tree_client_unittest.cc ('k') | ui/wm/core/shadow_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698