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

Unified Diff: chrome/browser/ui/android/context_menu_helper.cc

Issue 2957023002: Centralize the Data Reduction Proxy pass through header (Closed)
Patch Set: remove unused identity directive method Created 3 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: chrome/browser/ui/android/context_menu_helper.cc
diff --git a/chrome/browser/ui/android/context_menu_helper.cc b/chrome/browser/ui/android/context_menu_helper.cc
index efc1d4db992e670d56e8a6b52e27553df7f635c7..e920280db43315d69230d35dec6c6c99659aa5c2 100644
--- a/chrome/browser/ui/android/context_menu_helper.cc
+++ b/chrome/browser/ui/android/context_menu_helper.cc
@@ -36,9 +36,6 @@ using base::android::JavaParamRef;
DEFINE_WEB_CONTENTS_USER_DATA_KEY(ContextMenuHelper);
-const char kDataReductionProxyPassthroughHeader[] =
- "Chrome-Proxy-Accept-Transform: identity\r\n";
-
namespace {
class ContextMenuHelperImageRequest : public ImageDecoder::ImageRequest {
@@ -184,7 +181,7 @@ void ContextMenuHelper::OnStartDownload(
jboolean jis_data_reduction_proxy_enabled) {
std::string headers;
if (jis_data_reduction_proxy_enabled)
- headers = kDataReductionProxyPassthroughHeader;
+ headers = data_reduction_proxy::chrome_proxy_pass_through_header();
DownloadControllerBase::Get()->StartContextMenuDownload(
context_menu_params_,

Powered by Google App Engine
This is Rietveld 408576698