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

Unified Diff: services/ui/ws/display.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/display.h ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index 6ecc8f16e339a21e034ec32a53a4443fc894646c..fa573f604d0e037bce222dc8153b58ed1aa21a32 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -200,8 +200,8 @@ void Display::SetSize(const gfx::Size& size) {
platform_display_->SetViewportSize(size);
}
-void Display::SetTitle(const mojo::String& title) {
- platform_display_->SetTitle(title.To<base::string16>());
+void Display::SetTitle(const std::string& title) {
+ platform_display_->SetTitle(base::UTF8ToUTF16(title));
}
void Display::InitWindowManagerDisplayRoots() {
« no previous file with comments | « services/ui/ws/display.h ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698