commit | 9ee6bdfe619e02b6ce1d2cd50b10942ef6425d2c | [log] [tgz] |
---|---|---|
author | Hui Shu <hush@google.com> | Mon May 23 16:25:01 2016 -0700 |
committer | Hui Shu <hush@google.com> | Mon May 23 16:29:41 2016 -0700 |
tree | a091b5d660469c909594c9373ed3089bdd2ddb98 | |
parent | 520eca5ba36df4d7e515cbae4911e463a5562dda [diff] |
Make getMinimumVersionCode thread safe. The method is not thread safe when there are multiple available-by-default, non-fallback WebView provider packages with different versions, because it sets mMiniumVersionCode multiple times during the for loop, when another thread might be reading the intermediate mMinimumVersionCode. BUG: 28916406 Change-Id: I826c79f108b114c42c7bcd91fc198212c9ab09ad