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

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

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/internal/web_view_web_main_delegate.h ('k') | ios/web_view/internal/web_view_web_main_parts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83188ce85c46a185f0b127497b8e07011a2a7092..3160919d3a5f6fd248935e67be21cdc27752f5bd 100644
--- a/ios/web_view/internal/web_view_web_main_delegate.mm
+++ b/ios/web_view/internal/web_view_web_main_delegate.mm
@@ -7,7 +7,6 @@
#import "base/mac/bundle_locations.h"
#include "base/memory/ptr_util.h"
#import "ios/web_view/internal/web_view_web_client.h"
-#import "ios/web_view/public/cwv_delegate.h"
#import "ios/web_view/public/cwv_web_view.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -16,15 +15,16 @@
namespace ios_web_view {
-WebViewWebMainDelegate::WebViewWebMainDelegate(id<CWVDelegate> delegate)
- : delegate_(delegate) {}
+WebViewWebMainDelegate::WebViewWebMainDelegate(
+ const std::string& user_agent_product)
+ : user_agent_product_(user_agent_product) {}
WebViewWebMainDelegate::~WebViewWebMainDelegate() = default;
void WebViewWebMainDelegate::BasicStartupComplete() {
base::mac::SetOverrideFrameworkBundle(
[NSBundle bundleForClass:[CWVWebView class]]);
- web_client_ = base::MakeUnique<WebViewWebClient>(delegate_);
+ web_client_ = base::MakeUnique<WebViewWebClient>(user_agent_product_);
web::SetWebClient(web_client_.get());
}
« no previous file with comments | « ios/web_view/internal/web_view_web_main_delegate.h ('k') | ios/web_view/internal/web_view_web_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698