Daniel White would like Benjamin Williams to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
R=bwwil...@google.com
diff --git a/ios/chrome/browser/content_suggestions/ui_bundled/cells/content_suggestions_tile_view.mm b/ios/chrome/browser/content_suggestions/ui_bundled/cells/content_suggestions_tile_view.mm
index f82101a..4f2036f 100644
--- a/ios/chrome/browser/content_suggestions/ui_bundled/cells/content_suggestions_tile_view.mm
+++ b/ios/chrome/browser/content_suggestions/ui_bundled/cells/content_suggestions_tile_view.mm
@@ -49,10 +49,8 @@
_imageContainerView = [[UIView alloc] init];
_imageContainerView.translatesAutoresizingMaskIntoConstraints = NO;
if (ios::provider::IsRaccoonEnabled()) {
- if (@available(iOS 17.0, *)) {
_imageContainerView.hoverStyle = [UIHoverStyle
styleWithShape:[UIShape rectShapeWithCornerRadius:kCornerRadius]];
- }
}
// Use original rounded-square background image for Shorcuts
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Quentin Pubert to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
diff --git a/ios/chrome/browser/find_in_page/model/find_in_page_egtest.mm b/ios/chrome/browser/find_in_page/model/find_in_page_egtest.mm
index 16702aa..39f3fb3e 100644
--- a/ios/chrome/browser/find_in_page/model/find_in_page_egtest.mm
+++ b/ios/chrome/browser/find_in_page/model/find_in_page_egtest.mm
@@ -796,11 +796,9 @@
// after switching temporarily to another tab.
// TODO(crbug.com/40940589): Re-enable this test.
- (void)FLAKY_testFindInPageSwitchingTabs {
- // TODO(crbug.com/40922941): Failing on iOS17 iPhone.
- if (@available(iOS 17.0, *)) {
- if (![ChromeEarlGrey isIPadIdiom]) {
- XCTSkip(@"Failing on iOS17 iPhone");
- }
+ // TODO(crbug.com/40922941): Failing on iPhone.
+ if (![ChromeEarlGrey isIPadIdiom]) {
+ XCTSkip(@"Failing on iOS17 iPhone");
}
[self setUpTestServersForWebPageTest];
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Vidhan Jain to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
diff --git a/ios/chrome/browser/settings/ui_bundled/autofill/autofill_add_address_manually_egtest.mm b/ios/chrome/browser/settings/ui_bundled/autofill/autofill_add_address_manually_egtest.mm
index a97535c9..c139a5f9 100644
--- a/ios/chrome/browser/settings/ui_bundled/autofill/autofill_add_address_manually_egtest.mm
+++ b/ios/chrome/browser/settings/ui_bundled/autofill/autofill_add_address_manually_egtest.mm
@@ -414,26 +414,24 @@
EARL_GREY_TEST_SKIPPED(@"Test is not applicable for iPhone.");
}
- if (@available(iOS 17.0, *)) {
- [self openAddAddressView:YES];
+ [self openAddAddressView:YES];
- // Change trait collection to use extra large content size so that the
- // 'Save' button becomes hidden.
- ScopedTraitOverrider overrider(TopPresentedViewController());
- overrider.SetContentSizeCategory(UIContentSizeCategoryExtraLarge);
- [ChromeEarlGreyUI waitForAppToIdle];
+ // Change trait collection to use extra large content size so that the
+ // 'Save' button becomes hidden.
+ ScopedTraitOverrider overrider(TopPresentedViewController());
+ overrider.SetContentSizeCategory(UIContentSizeCategoryExtraLarge);
+ [ChromeEarlGreyUI waitForAppToIdle];
- // Fill the required fields.
- [self fillRequiredFields];
+ // Fill the required fields.
+ [self fillRequiredFields];
- // Scroll down to show the 'Save' button.
- [[EarlGrey selectElementWithMatcher:EditProfileBottomSheet()]
- performAction:grey_scrollToContentEdge(kGREYContentEdgeBottom)];
+ // Scroll down to show the 'Save' button.
+ [[EarlGrey selectElementWithMatcher:EditProfileBottomSheet()]
+ performAction:grey_scrollToContentEdge(kGREYContentEdgeBottom)];
- // Ensure the 'Save' button's status changed to enabled.
- [[EarlGrey selectElementWithMatcher:SaveAddressButton()]
- assertWithMatcher:grey_enabled()];
- }
+ // Ensure the 'Save' button's status changed to enabled.
+ [[EarlGrey selectElementWithMatcher:SaveAddressButton()]
+ assertWithMatcher:grey_enabled()];
}
@end
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Gauthier Ambard to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
diff --git a/ios/chrome/browser/shared/coordinator/utils/credential_provider_settings_utils.mm b/ios/chrome/browser/shared/coordinator/utils/credential_provider_settings_utils.mm
index de61e0f6..d476178 100644
--- a/ios/chrome/browser/shared/coordinator/utils/credential_provider_settings_utils.mm
+++ b/ios/chrome/browser/shared/coordinator/utils/credential_provider_settings_utils.mm
@@ -36,16 +36,12 @@
void OpenIOSCredentialProviderSettings() {
// If available, use the API that allows to directly open the iOS credential
// provider settings.
- if (@available(iOS 17.0, *)) {
- [ASSettingsHelper openCredentialProviderAppSettingsWithCompletionHandler:^(
- NSError* error) {
- if (error) {
- ios::provider::PasswordsInOtherAppsOpensSettings();
- }
- }];
- } else {
- ios::provider::PasswordsInOtherAppsOpensSettings();
- }
+ [ASSettingsHelper
+ openCredentialProviderAppSettingsWithCompletionHandler:^(NSError* error) {
+ if (error) {
+ ios::provider::PasswordsInOtherAppsOpensSettings();
+ }
+ }];
}
void RecordTurnOnCredentialProviderExtensionPromptOutcome(
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Sergio Collazos to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Ewann Pellé to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
diff --git a/ios/chrome/browser/tab_switcher/tab_strip/ui/tab_strip_new_tab_button.swift b/ios/chrome/browser/tab_switcher/tab_strip/ui/tab_strip_new_tab_button.swift
index 409fb72..5b9ed29 100644
--- a/ios/chrome/browser/tab_switcher/tab_strip/ui/tab_strip_new_tab_button.swift
+++ b/ios/chrome/browser/tab_switcher/tab_strip/ui/tab_strip_new_tab_button.swift
@@ -73,9 +73,7 @@
button.translatesAutoresizingMaskIntoConstraints = false
button.addTarget(self, action: #selector(buttonTapped), for: .touchUpInside)
button.isPointerInteractionEnabled = true
- if #available(iOS 17.0, *) {
- button.hoverStyle = .init(effect: .lift, shape: .circle)
- }
+ button.hoverStyle = .init(effect: .lift, shape: .circle)
}
/// Updates the `accessibilityLabel` according to the current state of
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Christian Xu to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
diff --git a/ios/chrome/browser/toolbar/ui_bundled/buttons/toolbar_button_factory.mm b/ios/chrome/browser/toolbar/ui_bundled/buttons/toolbar_button_factory.mm
index 01b3397..08b27b80 100644
--- a/ios/chrome/browser/toolbar/ui_bundled/buttons/toolbar_button_factory.mm
+++ b/ios/chrome/browser/toolbar/ui_bundled/buttons/toolbar_button_factory.mm
@@ -437,10 +437,8 @@
button.exclusiveTouch = YES;
button.pointerInteractionEnabled = YES;
if (ios::provider::IsRaccoonEnabled()) {
- if (@available(iOS 17.0, *)) {
- button.hoverStyle = [UIHoverStyle
- styleWithShape:[UIShape rectShapeWithCornerRadius:width / 4]];
- }
+ button.hoverStyle = [UIHoverStyle
+ styleWithShape:[UIShape rectShapeWithCornerRadius:width / 4]];
}
button.pointerStyleProvider =
^UIPointerStyle*(UIButton* uiButton, UIPointerEffect* proposedEffect,
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Zhaoyang Li to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
diff --git a/ios/chrome/test/scoped_eg_traits_overrider.mm b/ios/chrome/test/scoped_eg_traits_overrider.mm
index c56c718..429489cf 100644
--- a/ios/chrome/test/scoped_eg_traits_overrider.mm
+++ b/ios/chrome/test/scoped_eg_traits_overrider.mm
@@ -20,19 +20,15 @@
// For other trait overrides, don't forget to remove it here. The
// `traitOverrides` is read only.
if (top_view_controller_) {
- if (@available(iOS 17.0, *)) {
top_view_controller_.traitOverrides.preferredContentSizeCategory =
original_content_size_category_;
- }
}
}
void ScopedTraitOverrider::SetContentSizeCategory(
UIContentSizeCategory new_content_size_category) {
if (top_view_controller_) {
- if (@available(iOS 17.0, *)) {
top_view_controller_.traitOverrides.preferredContentSizeCategory =
new_content_size_category;
- }
}
}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Daniel White would like Robbie Gibson to review this change.
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
diff --git a/ios/chrome/widget_kit_extension/main.swift b/ios/chrome/widget_kit_extension/main.swift
index f0f3264..9c0726e 100644
--- a/ios/chrome/widget_kit_extension/main.swift
+++ b/ios/chrome/widget_kit_extension/main.swift
@@ -12,11 +12,7 @@
static func main() {
CrashHelper.configure()
- if #available(iOS 17.0, *) {
- return ChromeWidgetsForMIM.main()
- } else {
- return ChromeWidgets.main()
- }
+ return ChromeWidgetsForMIM.main()
}
}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
R=rkgi...@google.com
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[iOS] iOS 16 deprecation code cleanuptiny nit: this CL cleans an iOS 17 check.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[iOS] iOS 16 deprecation code cleanup
Each year the Chrome for iOS team increases the application's minimum
supported iOS version. During the process, run/compile-time flags are
added throughout the codebase to transitions areas of the code using
deprecated APIs to the newer variants. Once the minimum supported
version is bumped, these guards are no longer needed.
This CL is part of a large-scale effort to remove the remaining obsolete
guards from the application's codebase.
This CL was uploaded by git cl split.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |