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

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

Issue 2505133003: Mojo C++ bindings: switch part of the services/ui/public/interfaces mojom target to use STL types. (Closed)
Patch Set: Merge branch 'master' into c139_wrappers_ui 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/window_server_test_impl.h ('k') | ui/views/mus/screen_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server_test_impl.cc
diff --git a/services/ui/ws/window_server_test_impl.cc b/services/ui/ws/window_server_test_impl.cc
index 848b5c33ce7a057379978833eaf834002ef47ecb..64ec2d57a154653e4311f57439deb764575f5e76 100644
--- a/services/ui/ws/window_server_test_impl.cc
+++ b/services/ui/ws/window_server_test_impl.cc
@@ -44,10 +44,9 @@ void WindowServerTestImpl::OnWindowPaint(
}
void WindowServerTestImpl::EnsureClientHasDrawnWindow(
- const mojo::String& client_name,
+ const std::string& client_name,
const EnsureClientHasDrawnWindowCallback& callback) {
- std::string name = client_name.To<std::string>();
- WindowTree* tree = window_server_->GetTreeWithClientName(name);
+ WindowTree* tree = window_server_->GetTreeWithClientName(client_name);
if (tree) {
for (const ServerWindow* window : tree->roots()) {
if (WindowHasValidFrame(window)) {
@@ -59,7 +58,7 @@ void WindowServerTestImpl::EnsureClientHasDrawnWindow(
window_server_->SetPaintCallback(
base::Bind(&WindowServerTestImpl::OnWindowPaint, base::Unretained(this),
- name, std::move(callback)));
+ client_name, std::move(callback)));
}
} // namespace ws
« no previous file with comments | « services/ui/ws/window_server_test_impl.h ('k') | ui/views/mus/screen_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698