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

Unified Diff: services/ui/ws/test_change_tracker.cc

Issue 2511883006: Mojo C++ bindings: switch services/ui/public/interfaces mojom target to use STL types. (Closed)
Patch Set: . 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
« no previous file with comments | « services/ui/ws/test_change_tracker.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_change_tracker.cc
diff --git a/services/ui/ws/test_change_tracker.cc b/services/ui/ws/test_change_tracker.cc
index ac9bae20290f421011d99ea36f9a11db955a06d7..5c7e4d47da4b20e22a70cacf198e678cb8a342e3 100644
--- a/services/ui/ws/test_change_tracker.cc
+++ b/services/ui/ws/test_change_tracker.cc
@@ -202,12 +202,11 @@ TestWindow WindowDataToTestWindow(const mojom::WindowDataPtr& data) {
window.parent_id = data->parent_id;
window.window_id = data->window_id;
window.visible = data->visible;
- window.properties =
- data->properties.To<std::map<std::string, std::vector<uint8_t>>>();
+ window.properties = mojo::UnorderedMapToMap(data->properties);
return window;
}
-void WindowDatasToTestWindows(const Array<mojom::WindowDataPtr>& data,
+void WindowDatasToTestWindows(const std::vector<mojom::WindowDataPtr>& data,
std::vector<TestWindow>* test_windows) {
for (size_t i = 0; i < data.size(); ++i)
test_windows->push_back(WindowDataToTestWindow(data[i]));
« no previous file with comments | « services/ui/ws/test_change_tracker.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698