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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.mm

Issue 2689953003: Add Category wrapper for ContentSuggestions on iOS (Closed)
Patch Set: Add include Created 3 years, 10 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/content_suggestions/content_suggestions_section_information.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.mm
new file mode 100644
index 0000000000000000000000000000000000000000..93e5ab48d6dcf13102f0b0f4f0eac8112292679e
--- /dev/null
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.mm
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_section_information.h"
+
+#include "base/logging.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+@implementation ContentSuggestionsSectionInformation
+
+@synthesize emptyCell = _emptyCell;
+@synthesize layout = _layout;
+@synthesize ID = _ID;
+@synthesize title = _title;
+
+- (instancetype)initWithID:(ContentSuggestionsSectionID)ID {
+ self = [super init];
+ if (self) {
+ DCHECK(ID != ContentSuggestionsSectionNotImplemented);
+ _ID = ID;
+ }
+ return self;
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698