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

Unified Diff: components/cronet/url_request_context_config.cc

Issue 937513003: Add Data Saver support to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/cronet/url_request_context_config.cc
diff --git a/components/cronet/url_request_context_config.cc b/components/cronet/url_request_context_config.cc
index 0aa208977dd12a6d5289c99fd788f968b6b0b54b..7707850e7b24e42ff4146806a98f0f3ab415cc9d 100644
--- a/components/cronet/url_request_context_config.cc
+++ b/components/cronet/url_request_context_config.cc
@@ -103,6 +103,10 @@ void URLRequestContextConfig::RegisterJSONConverter(
converter->RegisterStringField(
REQUEST_CONTEXT_CONFIG_QUIC_OPTIONS,
&URLRequestContextConfig::quic_connection_options);
+ converter->RegisterBoolField(REQUEST_CONTEXT_CONFIG_ENABLE_DATA_SAVER,
+ &URLRequestContextConfig::enable_data_saver);
+ converter->RegisterStringField(REQUEST_CONTEXT_CONFIG_DATA_SAVER_KEY,
+ &URLRequestContextConfig::data_saver_key);
}
} // namespace cronet

Powered by Google App Engine
This is Rietveld 408576698