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

Unified Diff: ios/web/web_state/web_state_impl.mm

Issue 2614023006: [ios] Removed -[CRWWebDelegate openURLWithParams:]. (Closed)
Patch Set: Created 3 years, 11 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/web_state/web_state_delegate_stub.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_impl.mm
diff --git a/ios/web/web_state/web_state_impl.mm b/ios/web/web_state/web_state_impl.mm
index 5854cadf754e96affe504becc0c939d05b1ef2fc..4ab5963c38a782a324aceee37995cd9279a700bf 100644
--- a/ios/web/web_state/web_state_impl.mm
+++ b/ios/web/web_state/web_state_impl.mm
@@ -612,7 +612,8 @@ BrowserState* WebStateImpl::GetBrowserState() const {
void WebStateImpl::OpenURL(const WebState::OpenURLParams& params) {
DCHECK(Configured());
ClearTransientContentView();
- [[web_controller_ delegate] openURLWithParams:params];
+ if (delegate_)
+ delegate_->OpenURLFromWebState(this, params);
}
void WebStateImpl::Stop() {
« no previous file with comments | « ios/web/web_state/web_state_delegate_stub.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698