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

Unified Diff: android_webview/native/aw_contents_statics.cc

Issue 286013002: Added alternative configuration for the data reduction proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK fix Created 6 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 | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents_statics.cc
diff --git a/android_webview/native/aw_contents_statics.cc b/android_webview/native/aw_contents_statics.cc
index 0cd4964d5a7628d60306a6ba369c514bc3da5b2b..70525af144ae0d83f7727304bd8695feb1fca7cf 100644
--- a/android_webview/native/aw_contents_statics.cc
+++ b/android_webview/native/aw_contents_statics.cc
@@ -54,8 +54,8 @@ void SetDataReductionProxyKey(JNIEnv* env, jclass, jstring key) {
DCHECK(browser_context);
DataReductionProxySettings* drp_settings =
browser_context->GetDataReductionProxySettings();
- DCHECK(drp_settings);
- drp_settings->set_key(ConvertJavaStringToUTF8(env, key));
+ if (drp_settings)
+ drp_settings->params()->set_key(ConvertJavaStringToUTF8(env, key));
}
// static
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698