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

Unified Diff: ios/web_view/shell/shell_app_delegate.m

Issue 2800433002: Remove CWVDelegate. (Closed)
Patch Set: Respond to comments. Created 3 years, 8 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
« no previous file with comments | « ios/web_view/shell/BUILD.gn ('k') | ios/web_view/shell/shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/shell/shell_app_delegate.m
diff --git a/ios/web_view/shell/shell_app_delegate.m b/ios/web_view/shell/shell_app_delegate.m
index 95ddf2f4401b507455180aed5fdaa2d830a965e4..2ab0917c271d55ebb581a75f897a641f4975abe4 100644
--- a/ios/web_view/shell/shell_app_delegate.m
+++ b/ios/web_view/shell/shell_app_delegate.m
@@ -6,20 +6,14 @@
#import <ChromeWebView/ChromeWebView.h>
-#import "ios/web_view/shell/shell_delegate.h"
#import "ios/web_view/shell/shell_view_controller.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
-@interface ShellAppDelegate ()
-@property(nonatomic, strong) ShellDelegate* delegate;
-@end
-
@implementation ShellAppDelegate
-@synthesize delegate = _delegate;
@synthesize window = _window;
- (BOOL)application:(UIApplication*)application
@@ -27,8 +21,7 @@
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
- self.delegate = [[ShellDelegate alloc] init];
- [CWV configureWithDelegate:_delegate];
+ [CWV configureWithUserAgentProductName:@"Dummy/1.0"];
[self.window makeKeyAndVisible];
@@ -51,7 +44,6 @@
}
- (void)applicationWillTerminate:(UIApplication*)application {
- [CWV shutDown];
}
@end
« no previous file with comments | « ios/web_view/shell/BUILD.gn ('k') | ios/web_view/shell/shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698