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

Unified Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_collection_view_layout.mm

Issue 2810193002: [ObjC ARC] Converts ios/chrome/browser/ui/tab_switcher:tab_switcher to ARC. (Closed)
Patch Set: comment Created 3 years, 8 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/tab_switcher/tab_switcher_panel_collection_view_layout.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_collection_view_layout.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_collection_view_layout.mm
index 08522d91ee1d1767f7e6b701e03a2fda5523ac2f..86d75a2312e7fa94beed5196109c844696f3de84 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_collection_view_layout.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_collection_view_layout.mm
@@ -7,7 +7,10 @@
#include <algorithm>
#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 {
const CGFloat minWidthOfTab = 200;
@@ -20,8 +23,8 @@ const CGFloat kMaxCellHeightWidthRatio = 1.8;
@implementation TabSwitcherPanelCollectionViewLayout {
// Keeps track of the inserted and deleted index paths.
- base::scoped_nsobject<NSMutableArray> _deletedIndexPaths;
- base::scoped_nsobject<NSMutableArray> _insertedIndexPaths;
+ NSMutableArray* _deletedIndexPaths;
+ NSMutableArray* _insertedIndexPaths;
}
- (int)maxRowCountWithColumnCount:(int)columnCount inBounds:(CGSize)boundsSize {

Powered by Google App Engine
This is Rietveld 408576698