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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc

Issue 2250223002: Add InfoBar delegate for previews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
index a6fa327ebc7a8fa126a65d6f6b510fd9283df16d..4f7eb4cce137710a22d09c01f8e85f78a4177830 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
@@ -306,13 +306,11 @@ void DataReductionProxyNetworkDelegate::OnCompletedInternal(
request->response_headers()->HasHeaderValue(
chrome_proxy_header(), chrome_proxy_lo_fi_directive())) {
data_reduction_proxy_io_data_->lofi_ui_service()->OnLoFiReponseReceived(
- *request, false);
+ *request);
} else if (data_reduction_proxy_io_data_ && request->response_headers() &&
request->response_headers()->HasHeaderValue(
chrome_proxy_header(),
chrome_proxy_lo_fi_preview_directive())) {
- data_reduction_proxy_io_data_->lofi_ui_service()->OnLoFiReponseReceived(
- *request, true);
RecordLoFiTransformationType(PREVIEW);
} else if (request->GetFullRequestHeaders(&request_headers) &&
request_headers.HasHeader(chrome_proxy_header())) {

Powered by Google App Engine
This is Rietveld 408576698