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

Side by Side Diff: webrtc/examples/objc/AppRTCDemo/ios/ARDAppDelegate.m

Issue 1429513004: Switch usage of _DEBUG macro to NDEBUG. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: REBASE Created 5 years, 1 month 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 | « webrtc/base/win32socketserver.cc ('k') | webrtc/libjingle/xmpp/xmppclient.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 11 matching lines...) Expand all
22 #pragma mark - UIApplicationDelegate methods 22 #pragma mark - UIApplicationDelegate methods
23 23
24 - (BOOL)application:(UIApplication *)application 24 - (BOOL)application:(UIApplication *)application
25 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 25 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
26 [RTCPeerConnectionFactory initializeSSL]; 26 [RTCPeerConnectionFactory initializeSSL];
27 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 27 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
28 [_window makeKeyAndVisible]; 28 [_window makeKeyAndVisible];
29 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; 29 ARDMainViewController *viewController = [[ARDMainViewController alloc] init];
30 _window.rootViewController = viewController; 30 _window.rootViewController = viewController;
31 31
32 #ifndef _DEBUG 32 #if defined(NDEBUG)
33 // In debug builds the default level is LS_INFO and in non-debug builds it is 33 // In debug builds the default level is LS_INFO and in non-debug builds it is
34 // disabled. Continue to log to console in non-debug builds, but only 34 // disabled. Continue to log to console in non-debug builds, but only
35 // warnings and errors. 35 // warnings and errors.
36 RTCSetMinDebugLogLevel(kRTCLoggingSeverityWarning); 36 RTCSetMinDebugLogLevel(kRTCLoggingSeverityWarning);
37 #endif 37 #endif
38 38
39 return YES; 39 return YES;
40 } 40 }
41 41
42 - (void)applicationWillResignActive:(UIApplication *)application { 42 - (void)applicationWillResignActive:(UIApplication *)application {
43 ARDMainViewController *viewController = 43 ARDMainViewController *viewController =
44 (ARDMainViewController *)_window.rootViewController; 44 (ARDMainViewController *)_window.rootViewController;
45 [viewController applicationWillResignActive:application]; 45 [viewController applicationWillResignActive:application];
46 } 46 }
47 47
48 - (void)applicationWillTerminate:(UIApplication *)application { 48 - (void)applicationWillTerminate:(UIApplication *)application {
49 [RTCPeerConnectionFactory deinitializeSSL]; 49 [RTCPeerConnectionFactory deinitializeSSL];
50 } 50 }
51 51
52 @end 52 @end
OLDNEW
« no previous file with comments | « webrtc/base/win32socketserver.cc ('k') | webrtc/libjingle/xmpp/xmppclient.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698