diff options
Diffstat (limited to 'views/window/window_win.cc')
-rw-r--r-- | views/window/window_win.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc index 03bf75f..e940fdd 100644 --- a/views/window/window_win.cc +++ b/views/window/window_win.cc @@ -417,9 +417,7 @@ void WindowWin::UpdateWindowTitle() { window_title = window_delegate_->GetAccessibleWindowTitle(); else 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); SetWindowText(GetNativeView(), window_title.c_str()); // Also update the accessibility name. |