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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2572453002: [PlzNavigate] Wire page visibility info to navigation requests (Closed)
Patch Set: Created 4 years 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/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index e9253e595a21d1f12280603be819bcb609ea01ea..ef0928fb718d721a0684af6d6342dfe4deb3c52a 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -2238,12 +2238,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
true, // enable_load_timing
false, // enable_upload_progress
false, // do_not_prompt_for_login
- info.common_params.referrer.policy,
- // TODO(davidben): This is only used for prerenders. Replace
- // is_showing with something for that. Or maybe it just comes from the
- // same mechanism as the cookie one.
- blink::WebPageVisibilityStateVisible, resource_context,
- info.report_raw_headers,
+ info.common_params.referrer.policy, info.page_visibility_state,
+ resource_context, info.report_raw_headers,
true, // is_async
IsUsingLoFi(info.common_params.lofi_state, delegate_, *new_request,
resource_context, info.is_main_frame),
« no previous file with comments | « content/browser/loader/navigation_url_loader_unittest.cc ('k') | content/browser/loader/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698