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

Unified Diff: ui/aura/mus/window_tree_client_unittest.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
Index: ui/aura/mus/window_tree_client_unittest.cc
diff --git a/ui/aura/mus/window_tree_client_unittest.cc b/ui/aura/mus/window_tree_client_unittest.cc
index 8289b88a825ad8f775c58fafb359db73ce836169..126e3ad8416a3086f65e11d15906add63884f192 100644
--- a/ui/aura/mus/window_tree_client_unittest.cc
+++ b/ui/aura/mus/window_tree_client_unittest.cc
@@ -75,9 +75,15 @@ bool IsWindowHostVisible(Window* window) {
// Register some test window properties for aura/mus conversion.
void RegisterTestProperties(PropertyConverter* converter) {
- converter->RegisterProperty(kTestPropertyKey1, kTestPropertyServerKey1);
- converter->RegisterProperty(kTestPropertyKey2, kTestPropertyServerKey2);
- converter->RegisterProperty(kTestPropertyKey3, kTestPropertyServerKey3);
+ converter->RegisterProperty(
+ kTestPropertyKey1, kTestPropertyServerKey1,
+ PropertyConverter::CreateAcceptAnyValueCallback());
+ converter->RegisterProperty(
+ kTestPropertyKey2, kTestPropertyServerKey2,
+ PropertyConverter::CreateAcceptAnyValueCallback());
+ converter->RegisterProperty(
+ kTestPropertyKey3, kTestPropertyServerKey3,
+ PropertyConverter::CreateAcceptAnyValueCallback());
}
// Convert a primitive aura property value to a mus transport value.

Powered by Google App Engine
This is Rietveld 408576698