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

Unified Diff: ios/web_view/public/cwv_web_view_configuration.h

Issue 2791403005: Remove CWV class and move setting User Agent to CWVWebViewConfiguration. (Closed)
Patch Set: 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/public/cwv_web_view_configuration.h
diff --git a/ios/web_view/public/cwv_web_view_configuration.h b/ios/web_view/public/cwv_web_view_configuration.h
index 424abf3765b4357589ca2e8d3eaa63fbd93d365e..f722d4a669e0914a1e0cd1dc72a6d944b7d37ad2 100644
--- a/ios/web_view/public/cwv_web_view_configuration.h
+++ b/ios/web_view/public/cwv_web_view_configuration.h
@@ -23,6 +23,11 @@ CWV_EXPORT
- (instancetype)init NS_UNAVAILABLE;
+// Customizes the User Agent string used by web views. It should be of the
+// format "product/1.0". NOTE: This must be called before any
Eugene But (OOO till 7-30) 2017/04/04 21:50:26 This is pretty strict requirement. Is it temporary
michaeldo 2017/04/07 22:31:35 Moved to CWVWebView as static method per discussio
+// CWVWebViewConfiguration is initialized.
++ (void)setUserAgentProductName:(NSString*)userAgent;
+
// The user content controller to associate with web views created using this
// configuration.
@property(nonatomic, readonly) CWVUserContentController* userContentController;

Powered by Google App Engine
This is Rietveld 408576698