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

Unified Diff: ios/showcase/suggestions/sc_suggestions_coordinator.mm

Issue 2766313003: Rename Suggestions to ContentSuggestions in Showcase (Closed)
Patch Set: Rebase Created 3 years, 9 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/showcase/suggestions/sc_suggestions_coordinator.mm
diff --git a/ios/showcase/suggestions/sc_suggestions_coordinator.mm b/ios/showcase/suggestions/sc_suggestions_coordinator.mm
deleted file mode 100644
index 332795cd2e0ddbb9eb5dbe3722c7292499c2a505..0000000000000000000000000000000000000000
--- a/ios/showcase/suggestions/sc_suggestions_coordinator.mm
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2016 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/showcase/suggestions/sc_suggestions_coordinator.h"
-
-#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_commands.h"
-#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.h"
-#import "ios/showcase/common/protocol_alerter.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-@interface SCSuggestionsCoordinator ()
-
-@property(nonatomic, strong)
- ContentSuggestionsViewController* suggestionViewController;
-@property(nonatomic, strong) ProtocolAlerter* alerter;
-
-@end
-
-@implementation SCSuggestionsCoordinator
-
-@synthesize baseViewController;
-@synthesize suggestionViewController = _suggestionViewController;
-@synthesize alerter = _alerter;
-
-#pragma mark - Coordinator
-
-- (void)start {
- self.alerter = [[ProtocolAlerter alloc]
- initWithProtocols:@[ @protocol(ContentSuggestionsCommands) ]];
- self.alerter.baseViewController = self.baseViewController;
-
- _suggestionViewController = [[ContentSuggestionsViewController alloc]
- initWithStyle:CollectionViewControllerStyleDefault
- dataSource:nil];
-
- _suggestionViewController.suggestionCommandHandler =
- reinterpret_cast<id<ContentSuggestionsCommands>>(self.alerter);
-
- [self.baseViewController pushViewController:_suggestionViewController
- animated:YES];
-}
-
-@end
« no previous file with comments | « ios/showcase/suggestions/sc_suggestions_coordinator.h ('k') | ios/showcase/suggestions/sc_suggestions_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698