Index: base/ios/ios_util.mm |
diff --git a/base/ios/ios_util.mm b/base/ios/ios_util.mm |
index d9200450950aeee977568d104b245b807c96e164..4bb25dbc23ed6e98b4558a13068832a6eb07a8b9 100644 |
--- a/base/ios/ios_util.mm |
+++ b/base/ios/ios_util.mm |
@@ -4,6 +4,8 @@ |
#include "base/ios/ios_util.h" |
+#import <Foundation/Foundation.h> |
+ |
#include "base/sys_info.h" |
namespace { |
@@ -39,5 +41,10 @@ bool IsRunningOnOrLater(int32 major, int32 minor, int32 bug_fix) { |
return true; |
} |
+bool IsInForcedRTL() { |
+ NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
+ return [defaults boolForKey:@"AppleTextDirection"]; |
+} |
+ |
} // namespace ios |
} // namespace base |