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

Unified Diff: ios/chrome/proto_today_extension/widget_view_controller.mm

Issue 2632333002: Add a prototype today extension behind gn flag (Closed)
Patch Set: 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/proto_today_extension/widget_view_controller.mm
diff --git a/ios/chrome/proto_today_extension/widget_view_controller.mm b/ios/chrome/proto_today_extension/widget_view_controller.mm
new file mode 100644
index 0000000000000000000000000000000000000000..4e87e868db931d0fdce7c3bf113aa1ebd5d3f487
--- /dev/null
+++ b/ios/chrome/proto_today_extension/widget_view_controller.mm
@@ -0,0 +1,27 @@
+// 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/proto_today_extension/widget_view_controller.h"
Olivier 2017/01/17 10:13:05 Add space before
lody 2017/01/17 17:31:46 Done.
+
+#import <NotificationCenter/NotificationCenter.h>
+
+#import "ios/chrome/proto_today_extension/widget_view.h"
+
+@interface WidgetViewController ()
+@property(nonatomic) WidgetView* widgetView;
Olivier 2017/01/17 10:13:05 Is this ARC?
lody 2017/01/17 17:31:46 now it is! ;)
+@end
+
+@implementation WidgetViewController
+
+@synthesize widgetView = _widgetView;
+
+#pragma mark - UIViewController
+
+- (void)viewDidLoad {
+ [super viewDidLoad];
+
+ [self setWidgetView:[[WidgetView alloc] init]];
sdefresne 2017/01/17 10:39:07 This leaks unless you're using ARC (which you are
lody 2017/01/17 17:31:46 leak fixed. regarding using properties syntax, is
+ [self.view addSubview:_widgetView];
+}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698