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

Side by Side Diff: remoting/ios/app/app_delegate.mm

Issue 2928433002: [CRD iOS] Use UINavigationController for view stack manipulation (Closed)
Patch Set: Add comment Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | remoting/ios/app/client_connection_view_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if !defined(__has_feature) || !__has_feature(objc_arc) 5 #if !defined(__has_feature) || !__has_feature(objc_arc)
6 #error "This file requires ARC support." 6 #error "This file requires ARC support."
7 #endif 7 #endif
8 8
9 #import "remoting/ios/app/app_delegate.h" 9 #import "remoting/ios/app/app_delegate.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 [[RemotingService SharedInstance].authentication 49 [[RemotingService SharedInstance].authentication
50 authenticateWithAuthorizationCode:authorizationCode]; 50 authenticateWithAuthorizationCode:authorizationCode];
51 51
52 [self launchRemotingViewController]; 52 [self launchRemotingViewController];
53 return YES; 53 return YES;
54 } 54 }
55 55
56 - (void)launchRemotingViewController { 56 - (void)launchRemotingViewController {
57 RemotingViewController* vc = [[RemotingViewController alloc] init]; 57 RemotingViewController* vc = [[RemotingViewController alloc] init];
58 self.window.rootViewController = vc; 58 UINavigationController* navController =
59 [[UINavigationController alloc] initWithRootViewController:vc];
60 navController.navigationBarHidden = true;
61 self.window.rootViewController = navController;
59 [self.window makeKeyAndVisible]; 62 [self.window makeKeyAndVisible];
60 } 63 }
61 64
62 @end 65 @end
OLDNEW
« no previous file with comments | « no previous file | remoting/ios/app/client_connection_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698