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

Issue 2489333003: WebView Proguard: Keep AwBrowserProcess.sExclusiveFileLock. (Closed)

Created:
4 years, 1 month ago by gsennton
Modified:
4 years, 1 month ago
Reviewers:
Torne
CC:
chromium-reviews, android-webview-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebView Proguard: Keep AwBrowserProcess.sExclusiveFileLock. Static fields in Java are often assumed to stay alive throughout the runtime of the entire program. However, the proguard field/removal/writeonly optimization removes even static fields that are only written to. This breaks some WebView code that relies on static fields to hold onto a file-lock which prevents file-access from other processes. In this CL we explicitly tell proguard to keep AwBrowserProcess.sExclusiveFileLock. BUG=647291 Committed: https://crrev.com/d7730964c696db73bde4cc1ea6d07d3f09f85765 Cr-Commit-Position: refs/heads/master@{#431556}

Patch Set 1 #

Patch Set 2 : Use -keep instead of -keepclassmembers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M android_webview/apk/java/proguard.flags View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
gsennton
4 years, 1 month ago (2016-11-11 13:20:24 UTC) #1
gsennton
4 years, 1 month ago (2016-11-11 13:20:40 UTC) #3
gsennton
On 2016/11/11 13:20:40, gsennton wrote: unzip -v out-gn/Release/apks/SystemWebViewGoogle.apk | grep dex before this CL 999208 ...
4 years, 1 month ago (2016-11-11 13:24:58 UTC) #4
Torne
lgtm
4 years, 1 month ago (2016-11-11 13:30:32 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2489333003/20001
4 years, 1 month ago (2016-11-11 13:31:29 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-11 13:46:53 UTC) #8
commit-bot: I haz the power
4 years, 1 month ago (2016-11-11 13:49:23 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d7730964c696db73bde4cc1ea6d07d3f09f85765
Cr-Commit-Position: refs/heads/master@{#431556}

Powered by Google App Engine
This is Rietveld 408576698