Index: ios/chrome/browser/ui/contextual_search/panel_configuration.mm |
diff --git a/ios/chrome/browser/ui/contextual_search/panel_configuration.mm b/ios/chrome/browser/ui/contextual_search/panel_configuration.mm |
index 7e836d9c329b20bb1e80ee062e788a34094d7fb1..546757487d245b7498f5d93df28bed28e9b210ba 100644 |
--- a/ios/chrome/browser/ui/contextual_search/panel_configuration.mm |
+++ b/ios/chrome/browser/ui/contextual_search/panel_configuration.mm |
@@ -5,7 +5,10 @@ |
#include "ios/chrome/browser/ui/contextual_search/panel_configuration.h" |
#include "base/logging.h" |
-#include "base/mac/scoped_nsobject.h" |
+ |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
namespace { |
// Amount of tab that a previewing pane leaves visible, expressed as a fraction. |
@@ -43,7 +46,7 @@ typedef struct { CGFloat byState[ContextualSearch::COVERING + 1]; } Positions; |
+ (instancetype)configurationForContainerSize:(CGSize)containerSize |
horizontalSizeClass: |
(UIUserInterfaceSizeClass)horizontalSizeClass { |
- PanelConfiguration* config = [[[self alloc] init] autorelease]; |
+ PanelConfiguration* config = [[self alloc] init]; |
config.containerSize = containerSize; |
config.horizontalSizeClass = horizontalSizeClass; |
return config; |