DescriptionFixing a crash when clicking download notification while Chrome is killed
When clicking on download notification, Chrome checks if the download file
can be opened by itself.
This calls into a native function.
However, if user kills Chrome, and then clicks the notification, this
generates a Broadcast to Chrome.
When BroadcastReceiver runs, native library is not loaded.
As a result, this generates a crash.
This CL solves the problem by performing the mime type checking when
download completes.
So that we don't need to check it when BroadcastReceiver runs
BUG=658012
Committed: https://crrev.com/ff25b0171fdd6663cc16000071c8d65c3cde1cb0
Cr-Commit-Position: refs/heads/master@{#427204}
Patch Set 1 #
Total comments: 2
Patch Set 2 : nit #Messages
Total messages: 23 (12 generated)
|