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

Unified Diff: components/cronet/cronet_static.gypi

Issue 1112513003: Put Data Reduction Proxy support in Cronet behind a gyp flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cronet
Patch Set: Addressed comments Created 5 years, 7 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
« no previous file with comments | « components/cronet/android/test/src/org/chromium/net/NativeTestServer.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/cronet_static.gypi
diff --git a/components/cronet/cronet_static.gypi b/components/cronet/cronet_static.gypi
index c591fffbc086c1915409ca55f102c31aabe0ceee..0004e1b2e26df0f184e733135452f5e707d312ac 100644
--- a/components/cronet/cronet_static.gypi
+++ b/components/cronet/cronet_static.gypi
@@ -21,8 +21,6 @@
'android/chromium_url_request_context.h',
'android/chromium_url_request_error_list.h',
'android/chromium_url_request_priority_list.h',
- 'android/cronet_data_reduction_proxy.cc',
- 'android/cronet_data_reduction_proxy.h',
'android/cronet_histogram_manager.cc',
'android/cronet_histogram_manager.h',
'android/cronet_library_loader.cc',
@@ -65,4 +63,20 @@
'-Wl,--gc-sections',
'-Wl,--exclude-libs,ALL'
],
+ 'conditions': [
+ # If Data Reduction Proxy support is enabled, add the following
+ # defines and sources. Dependencies are target-specific and are
+ # not included here.
+ ['enable_data_reduction_proxy_support==1',
+ {
+ 'defines' : [
+ 'DATA_REDUCTION_PROXY_SUPPORT'
+ ],
+ 'sources': [
+ 'android/cronet_data_reduction_proxy.cc',
+ 'android/cronet_data_reduction_proxy.h',
+ ],
+ }
+ ],
+ ],
}
« no previous file with comments | « components/cronet/android/test/src/org/chromium/net/NativeTestServer.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698