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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: add back previews_unspecified 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/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index c138e0cd844d85ea23e844c8134f12c91631d965..ff787874e4525a9ec2063062a2c7df3c8b7c2b88 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -600,7 +600,7 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
resource_request->do_not_prompt_for_login = true;
}
resource_request->report_raw_headers = request.reportRawHeaders();
- resource_request->lofi_state = static_cast<LoFiState>(request.getLoFiState());
+ resource_request->previews_state = request.getPreviewsState();
// PlzNavigate: during navigation, the renderer should request a stream which
// contains the body of the response. The network request has already been
@@ -1076,7 +1076,7 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
extra_data->set_was_alternate_protocol_available(
info.was_alternate_protocol_available);
extra_data->set_connection_info(info.connection_info);
- extra_data->set_is_using_lofi(info.is_using_lofi);
+ extra_data->set_previews_state(info.previews_state);
extra_data->set_effective_connection_type(info.effective_connection_type);
// If there's no received headers end time, don't set load timing. This is

Powered by Google App Engine
This is Rietveld 408576698