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

Unified Diff: ios/chrome/browser/ui/util/i18n_string.mm

Issue 2730763003: Fix util to adjust string for locale direction (Closed)
Patch Set: Created 3 years, 10 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/util/i18n_string.mm
diff --git a/ios/chrome/browser/ui/util/i18n_string.mm b/ios/chrome/browser/ui/util/i18n_string.mm
index 5242053c0253b2877a424f29774b805527ace94a..6aaf6816b943cb9df12b9ed63be8977548ee82a7 100644
--- a/ios/chrome/browser/ui/util/i18n_string.mm
+++ b/ios/chrome/browser/ui/util/i18n_string.mm
@@ -15,5 +15,5 @@ NSString* AdjustStringForLocaleDirection(NSString* text) {
if (has_changed) {
return base::SysUTF16ToNSString(converted_text);
}
- return text;
+ return [[text copy] autorelease];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698