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

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

Issue 2791403005: Remove CWV class and move setting User Agent to CWVWebViewConfiguration. (Closed)
Patch Set: Remove cwv.h import from Framework header. 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
Index: ios/web_view/shell/shell_view_controller.m
diff --git a/ios/web_view/shell/shell_view_controller.m b/ios/web_view/shell/shell_view_controller.m
index 8e09be8868f276527075c674f2d510bb62c74f5b..39438be61e79aac540f9b023bac0366bbb2e9c2d 100644
--- a/ios/web_view/shell/shell_view_controller.m
+++ b/ios/web_view/shell/shell_view_controller.m
@@ -133,7 +133,12 @@ NSString* const kWebViewShellJavaScriptDialogTextFieldAccessibiltyIdentifier =
[_toolbar addSubview:stop];
[_toolbar addSubview:_field];
- self.webView = [CWV webViewWithFrame:[_containerView bounds]];
+ [CWVWebView setUserAgentProduct:@"Dummy/1.0"];
+
+ CWVWebViewConfiguration* configuration =
+ [CWVWebViewConfiguration defaultConfiguration];
+ self.webView = [[CWVWebView alloc] initWithFrame:[_containerView bounds]
+ configuration:configuration];
_webView.navigationDelegate = self;
_webView.UIDelegate = self;
_translateController = [[TranslateController alloc] init];
« ios/web_view/public/cwv_web_view.h ('K') | « ios/web_view/shell/shell_app_delegate.m ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698