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

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

Issue 2430463003: Removed use of IsRunningOnIOS8OrLater from ui_util and uikit_ui_util (Closed)
Patch Set: one line!!!1! 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 | ios/chrome/browser/ui/uikit_ui_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ui_util.mm
diff --git a/ios/chrome/browser/ui/ui_util.mm b/ios/chrome/browser/ui/ui_util.mm
index 17831534307eae08d589b22c0fc36d992ada6b91..18228dc3dbde0d37855b57189a7e494f0e6c5da3 100644
--- a/ios/chrome/browser/ui/ui_util.mm
+++ b/ios/chrome/browser/ui/ui_util.mm
@@ -6,7 +6,6 @@
#import <UIKit/UIKit.h>
-#include "base/ios/ios_util.h"
#include "base/logging.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
#include "ui/gfx/ios/uikit_util.h"
@@ -42,21 +41,11 @@ bool IsLandscape() {
}
CGFloat CurrentScreenHeight() {
- CGSize screenSize = [UIScreen mainScreen].bounds.size;
- if (base::ios::IsRunningOnIOS8OrLater()) {
- return screenSize.height;
- } else {
- return IsPortrait() ? screenSize.height : screenSize.width;
- }
+ return [UIScreen mainScreen].bounds.size.height;
}
CGFloat CurrentScreenWidth() {
- CGSize screenSize = [UIScreen mainScreen].bounds.size;
- if (base::ios::IsRunningOnIOS8OrLater()) {
- return screenSize.width;
- } else {
- return IsPortrait() ? screenSize.width : screenSize.height;
- }
+ return [UIScreen mainScreen].bounds.size.width;
}
CGFloat StatusBarHeight() {
« no previous file with comments | « no previous file | ios/chrome/browser/ui/uikit_ui_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698