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

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: Some fixes 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..f58f7b529955a40b12d83e9bed56f7e200aa113a 100644
--- a/ios/chrome/browser/ui/contextual_search/panel_configuration.mm
+++ b/ios/chrome/browser/ui/contextual_search/panel_configuration.mm
@@ -5,7 +5,14 @@
#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
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
marq (ping after 24h) 2017/01/13 10:38:18 Clearly people aren't listening ...
stkhapugin 2017/01/17 15:57:44 Done.
+#endif
namespace {
// Amount of tab that a previewing pane leaves visible, expressed as a fraction.
@@ -43,7 +50,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