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

Unified Diff: ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm

Issue 2695243003: Remove IsRunningOnIOS9OrLater() check from omnibox_text_field_ios (Closed)
Patch Set: remove .h as well 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/omnibox/omnibox_text_field_ios.mm
diff --git a/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm b/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm
index d449366364a691180f361af28c0f90a964b41573..659afd722f593a54d9c8197a221c69bf4f12aebe 100644
--- a/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm
+++ b/ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.mm
@@ -7,7 +7,6 @@
#import <CoreText/CoreText.h>
#include "base/command_line.h"
-#include "base/ios/ios_util.h"
#include "base/logging.h"
#include "base/mac/foundation_util.h"
#include "base/mac/objc_property_releaser.h"
@@ -278,7 +277,7 @@ NSString* const kOmniboxFadeAnimationKey = @"OmniboxFadeAnimation";
}
- (NSTextAlignment)bestTextAlignment {
- if (!base::ios::IsRunningOnIOS9OrLater() || [self isFirstResponder]) {
+ if ([self isFirstResponder]) {
return [self bestAlignmentForText:[self text]];
}
return NSTextAlignmentNatural;
« 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