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

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

Issue 2937733003: [CRD iOS] Branching internal and external implementations (Closed)
Patch Set: Merge w/ ToT 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
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
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
13 #include "ui/base/resource/resource_bundle.h" 13 #include "ui/base/resource/resource_bundle.h"
14 14
15 #import "remoting/ios/app/remoting_resource_factory.h"
15 #import "remoting/ios/app/remoting_view_controller.h" 16 #import "remoting/ios/app/remoting_view_controller.h"
16 #import "remoting/ios/facade/remoting_authentication.h" 17 #import "remoting/ios/facade/remoting_authentication.h"
17 #import "remoting/ios/facade/remoting_service.h" 18 #import "remoting/ios/facade/remoting_service.h"
18 19
19 @implementation AppDelegate 20 @implementation AppDelegate
20 21
21 @synthesize window = _window; 22 @synthesize window = _window;
22 23
23 - (BOOL)application:(UIApplication*)application 24 - (BOOL)application:(UIApplication*)application
24 willFinishLaunchingWithOptions:(NSDictionary*)launchOptions { 25 willFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
(...skipping 26 matching lines...) Expand all
51 52
52 [self launchRemotingViewController]; 53 [self launchRemotingViewController];
53 return YES; 54 return YES;
54 } 55 }
55 56
56 - (void)launchRemotingViewController { 57 - (void)launchRemotingViewController {
57 RemotingViewController* vc = [[RemotingViewController alloc] init]; 58 RemotingViewController* vc = [[RemotingViewController alloc] init];
58 UINavigationController* navController = 59 UINavigationController* navController =
59 [[UINavigationController alloc] initWithRootViewController:vc]; 60 [[UINavigationController alloc] initWithRootViewController:vc];
60 navController.navigationBarHidden = true; 61 navController.navigationBarHidden = true;
61 self.window.rootViewController = navController; 62 self.window.rootViewController = [RemotingResourceFactory.defaultFactory
63 wrapRootViewController:navController];
62 [self.window makeKeyAndVisible]; 64 [self.window makeKeyAndVisible];
63 } 65 }
64 66
65 @end 67 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698