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

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: rebase 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 61976816ab2630427b9625bbea9248af6a7f451a..55129decfa45d41fbdc46f96a9bb6942158e0e61 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -602,7 +602,8 @@ 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 =
+ static_cast<PreviewsState>(request.getPreviewsState());
// PlzNavigate: during navigation, the renderer should request a stream which
// contains the body of the response. The network request has already been
@@ -1085,7 +1086,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