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

Unified Diff: ios/web_view/internal/web_view_web_main_delegate.mm

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/internal/web_view_web_main_delegate.mm
diff --git a/ios/web_view/internal/web_view_web_main_delegate.mm b/ios/web_view/internal/web_view_web_main_delegate.mm
index 3160919d3a5f6fd248935e67be21cdc27752f5bd..9841cb6587bd0f7e3eee9c0cbe4527f62fc667d3 100644
--- a/ios/web_view/internal/web_view_web_main_delegate.mm
+++ b/ios/web_view/internal/web_view_web_main_delegate.mm
@@ -15,16 +15,14 @@
namespace ios_web_view {
-WebViewWebMainDelegate::WebViewWebMainDelegate(
- const std::string& user_agent_product)
- : user_agent_product_(user_agent_product) {}
+WebViewWebMainDelegate::WebViewWebMainDelegate() {}
WebViewWebMainDelegate::~WebViewWebMainDelegate() = default;
void WebViewWebMainDelegate::BasicStartupComplete() {
base::mac::SetOverrideFrameworkBundle(
[NSBundle bundleForClass:[CWVWebView class]]);
- web_client_ = base::MakeUnique<WebViewWebClient>(user_agent_product_);
+ web_client_ = base::MakeUnique<WebViewWebClient>();
web::SetWebClient(web_client_.get());
}

Powered by Google App Engine
This is Rietveld 408576698