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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2295053003: [ios] Implemented LoadHtml w/o using data:// URLs. (Closed)
Patch Set: Small cleanup Created 4 years, 4 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/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index e709907b5ff73f27ff6a07359e05ed4da1a042b1..e7fe4f3c9eb05ce6788928bf465f04c870a81dd1 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -4767,8 +4767,9 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
// Remove the transient content view.
[self clearTransientContentView];
- DLOG_IF(WARNING, !_webView) << "_webView null while trying to load HTML";
_loadPhase = web::LOAD_REQUESTED;
+ [self ensureWebViewCreated];
+ DCHECK(_webView) << "_webView null while trying to load HTML";
[_webView loadHTMLString:HTML baseURL:net::NSURLWithGURL(URL)];
}

Powered by Google App Engine
This is Rietveld 408576698