Chromium Code Reviews
DescriptionShow download error message if sdcard is not available
Currently when downloading a file without sdcard, Chrome shows the overwrite
infobar.
And if user acks that infobar, the file will be downloaded to Chrome's own
dir.
And the downloaded file cannot be opened by other apps, making it
useless.
This CL fixes that behavior by showing a "missing sdcard" message
when sdcard is not available.
Chrome will no longer try to generate a path under its own dir if sdcard
is not available.
If snackbar is available, the error message will be displayed on
snackbar.
Otherwise, a toast will be shown.
BUG=624912
Committed: https://crrev.com/7cf649da41128daf23ce3f631fe19f89b8da6a76
Cr-Commit-Position: refs/heads/master@{#405833}
Patch Set 1 #
Total comments: 12
Patch Set 2 : nits #Patch Set 3 : clean up document dir if no sdcard is found #
Total comments: 4
Patch Set 4 : adding more comments #Patch Set 5 : fix test, remove document dir cleaning code, will do it in another CL #Patch Set 6 : rebase #Messages
Total messages: 32 (12 generated)
|