diff options
Diffstat (limited to 'views/window/window_gtk.cc')
-rw-r--r-- | views/window/window_gtk.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc index d59d7a5..4f8a251 100644 --- a/views/window/window_gtk.cc +++ b/views/window/window_gtk.cc @@ -207,9 +207,7 @@ void WindowGtk::UpdateWindowTitle() { // Update the native frame's text. We do this regardless of whether or not // the native frame is being used, since this also updates the taskbar, etc. std::wstring window_title = window_delegate_->GetWindowTitle(); - std::wstring localized_text; - if (base::i18n::AdjustStringForLocaleDirection(window_title, &localized_text)) - window_title.assign(localized_text); + base::i18n::AdjustStringForLocaleDirection(&window_title); gtk_window_set_title(GetNativeWindow(), WideToUTF8(window_title).c_str()); } |