Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit 410c610

Browse files
hushCommit bot
hush
authored and
Commit bot
committed
Fix the drp crash for real.
There are 2 different path that can possibly lead to SetDataReductionProxyEnalbed: 1. AwContents initialization -> InitDataReductionProxyIfNecessary path 2. AwContents statistics SetDataReductionProxyEnalbed JNI path In both paths, we need to make sure before SetDataReductionProxyEnabed is called, we have set the statistics object on DataReductionProxySettings. BUG=b/17998706 Review URL: https://codereview.chromium.org/671823002 Cr-Commit-Position: refs/heads/master@{#300730}
1 parent 3c77290 commit 410c610

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

android_webview/browser/aw_browser_context.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ void AwBrowserContext::CreateUserPrefServiceIfNecessary() {
217217
user_pref_service_.get(),
218218
GetRequestContext());
219219

220-
data_reduction_proxy_settings_->SetDataReductionProxyEnabled(
221-
data_reduction_proxy_enabled_);
220+
SetDataReductionProxyEnabled(data_reduction_proxy_enabled_);
222221
}
223222
}
224223

0 commit comments

Comments
 (0)