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

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: Rebase. 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/shell_app_delegate.m ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c7b3aa47717b17b9c43476f234256e774d0d86e7..c7b1b2a059774c8636317fa655ca9ca23b22540f 100644
--- a/ios/web_view/shell/shell_view_controller.m
+++ b/ios/web_view/shell/shell_view_controller.m
@@ -145,7 +145,12 @@ NSString* const kWebViewShellJavaScriptDialogTextFieldAccessibiltyIdentifier =
[_toolbar addSubview:menu];
[_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];
// Gives a restoration identifier so that state restoration works.
_webView.restorationIdentifier = @"webView";
_webView.navigationDelegate = self;
« no previous file with comments | « 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