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

Unified Diff: webrtc/examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m

Issue 1690313002: Update iOS AppRTCDemo to use the updated Objective-C API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update against master Created 4 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: webrtc/examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m
diff --git a/webrtc/examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m b/webrtc/examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m
index 16ccfc355d9161c4202a1cd491ba7982c09478f1..f0b2a04b5f32283610ee0997c497ae234a24c614 100644
--- a/webrtc/examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m
+++ b/webrtc/examples/objc/AppRTCDemo/mac/APPRTCAppDelegate.m
@@ -14,8 +14,9 @@
#import "APPRTCAppDelegate.h"
+#import "webrtc/base/objc/RTCSSLAdapter.h"
+
#import "APPRTCViewController.h"
-#import "RTCPeerConnectionFactory.h"
@interface APPRTCAppDelegate () <NSWindowDelegate>
@end
@@ -28,7 +29,7 @@
#pragma mark - NSApplicationDelegate
- (void)applicationDidFinishLaunching:(NSNotification*)notification {
- [RTCPeerConnectionFactory initializeSSL];
+ RTCInitializeSSL();
NSScreen* screen = [NSScreen mainScreen];
NSRect visibleRect = [screen visibleFrame];
NSRect windowRect = NSMakeRect(NSMidX(visibleRect),
@@ -52,7 +53,7 @@
- (void)windowWillClose:(NSNotification*)notification {
[_viewController windowWillClose:notification];
- [RTCPeerConnectionFactory deinitializeSSL];
+ RTCCleanupSSL();
[NSApp terminate:self];
}

Powered by Google App Engine
This is Rietveld 408576698