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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2037733002: PlzNavigate: fix RenderViewImplTest.OnNavigationHttpPost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 43c084df61361a7645cb4837ec10e978168f65b1..b1449a97bbdd2abb3cd28cce5e0944e47069991b 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -5490,12 +5490,11 @@ void RenderFrameImpl::NavigateInternal(
// Perform a navigation to a data url if needed.
// Note: the base URL might be invalid, so also check the data URL string.
- if (!common_params.base_url_for_data_url.is_empty() ||
+ bool should_load_data_url = !common_params.base_url_for_data_url.is_empty();
#if defined(OS_ANDROID)
- !request_params.data_url_as_string.empty() ||
+ should_load_data_url |= !request_params.data_url_as_string.empty();
#endif
- (browser_side_navigation &&
- common_params.url.SchemeIs(url::kDataScheme))) {
+ if (should_load_data_url) {
LoadDataURL(common_params, request_params, frame_, load_type,
item_for_history_navigation, history_load_type,
is_client_redirect);

Powered by Google App Engine
This is Rietveld 408576698