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

Unified Diff: ios/chrome/browser/ui/contextual_search/panel_configuration.mm

Issue 2626073003: [ObjC ARC] Converts ios/chrome/browser/ui/contextual_search:contextual_search to ARC. (Closed)
Patch Set: format Created 3 years, 11 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
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;

Powered by Google App Engine
This is Rietveld 408576698