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

Unified Diff: views/window/window_gtk.cc

Issue 5154009: Cleanup AdjustStringForLocaleDirection() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: further fixes Created 10 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
Index: views/window/window_gtk.cc
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index 3d7f7887e5a736acfd08f8164233768db20a8534..e05cce1873dee06db7c284f1184e19d8af5f46b0 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -206,9 +206,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());
}

Powered by Google App Engine
This is Rietveld 408576698