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

Unified Diff: ios/chrome/browser/ui/rtl_geometry.mm

Issue 2437573004: Removed use of IsRunningOnIOS9OrLater from rtl_geometry.mm (Closed)
Patch Set: Created 4 years, 2 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/rtl_geometry.mm
diff --git a/ios/chrome/browser/ui/rtl_geometry.mm b/ios/chrome/browser/ui/rtl_geometry.mm
index 0ff4660cf6d1e1125a3b7a0ccf485b9cc36f5342..82c7dd740723240541af41205540d16a7a6e87d6 100644
--- a/ios/chrome/browser/ui/rtl_geometry.mm
+++ b/ios/chrome/browser/ui/rtl_geometry.mm
@@ -7,12 +7,11 @@
#import <UIKit/UIKit.h>
#include <limits>
-#include "base/ios/ios_util.h"
#include "base/logging.h"
#include "ios/chrome/browser/ui/ui_util.h"
bool UseRTLLayout() {
- return base::i18n::IsRTL() && base::ios::IsRunningOnIOS9OrLater();
+ return base::i18n::IsRTL();
}
base::i18n::TextDirection LayoutDirection() {
@@ -231,15 +230,13 @@ CGFloat CGRectGetTrailingEdge(CGRect rect) {
}
UIViewAutoresizing UIViewAutoresizingFlexibleLeadingMargin() {
- return base::i18n::IsRTL() && base::ios::IsRunningOnIOS9OrLater()
- ? UIViewAutoresizingFlexibleRightMargin
- : UIViewAutoresizingFlexibleLeftMargin;
+ return base::i18n::IsRTL() ? UIViewAutoresizingFlexibleRightMargin
+ : UIViewAutoresizingFlexibleLeftMargin;
}
UIViewAutoresizing UIViewAutoresizingFlexibleTrailingMargin() {
- return base::i18n::IsRTL() && base::ios::IsRunningOnIOS9OrLater()
- ? UIViewAutoresizingFlexibleLeftMargin
- : UIViewAutoresizingFlexibleRightMargin;
+ return base::i18n::IsRTL() ? UIViewAutoresizingFlexibleLeftMargin
+ : UIViewAutoresizingFlexibleRightMargin;
}
UIEdgeInsets UIEdgeInsetsMakeUsingDirection(
« 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