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

Unified Diff: Source/platform/text/LocaleMac.mm

Issue 90243005: Have Locale::create() take a String in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « Source/platform/text/LocaleICU.cpp ('k') | Source/platform/text/LocaleWin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/LocaleMac.mm
diff --git a/Source/platform/text/LocaleMac.mm b/Source/platform/text/LocaleMac.mm
index 64c1353e5e3d9b8f68da0e0107126cc0112bfeb7..48cad200c9178761b7678ce752347d8a9229ac9e 100644
--- a/Source/platform/text/LocaleMac.mm
+++ b/Source/platform/text/LocaleMac.mm
@@ -64,9 +64,9 @@ static RetainPtr<NSLocale> determineLocale(const String& locale)
return RetainPtr<NSLocale>(AdoptNS, [[NSLocale alloc] initWithLocaleIdentifier:locale]);
}
-PassOwnPtr<Locale> Locale::create(const AtomicString& locale)
+PassOwnPtr<Locale> Locale::create(const String& locale)
{
- return LocaleMac::create(determineLocale(locale.string()).get());
+ return LocaleMac::create(determineLocale(locale).get());
}
static RetainPtr<NSDateFormatter> createDateTimeFormatter(NSLocale* locale, NSCalendar* calendar, NSDateFormatterStyle dateStyle, NSDateFormatterStyle timeStyle)
« no previous file with comments | « Source/platform/text/LocaleICU.cpp ('k') | Source/platform/text/LocaleWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698