summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authornewt <newt@chromium.org>2014-09-03 14:49:21 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-03 21:53:36 +0000
commita29dd6ccf30bda316f32e17952dc2258103b2801 (patch)
treef479d853b8780734f39f9c963b5e9d4b14eee126 /content/public
parent3d377a4a08d8be39211dd63ec61ea8ff5643df37 (diff)
downloadchromium_src-a29dd6ccf30bda316f32e17952dc2258103b2801.zip
chromium_src-a29dd6ccf30bda316f32e17952dc2258103b2801.tar.gz
chromium_src-a29dd6ccf30bda316f32e17952dc2258103b2801.tar.bz2
[Android] Fix findbugs errors.
These were failing on Android Builder (dbg) FYI bot. BUG=409152 TBR=qinmin@chromium.org Review URL: https://codereview.chromium.org/522943003 Cr-Commit-Position: refs/heads/master@{#293206}
Diffstat (limited to 'content/public')
-rw-r--r--content/public/android/java/src/org/chromium/content/browser/crypto/CipherFactory.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/crypto/CipherFactory.java b/content/public/android/java/src/org/chromium/content/browser/crypto/CipherFactory.java
index b6ff368..7b1f8ee 100644
--- a/content/public/android/java/src/org/chromium/content/browser/crypto/CipherFactory.java
+++ b/content/public/android/java/src/org/chromium/content/browser/crypto/CipherFactory.java
@@ -8,6 +8,7 @@ import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
+import java.io.IOException;
import java.security.GeneralSecurityException;
import java.security.Key;
import java.security.SecureRandom;
@@ -153,7 +154,10 @@ public class CipherFactory {
try {
seed = mRandomNumberProvider.getBytes(NUM_BYTES);
iv = mRandomNumberProvider.getBytes(NUM_BYTES);
- } catch (Exception e) {
+ } catch (IOException e) {
+ Log.e(TAG, "Couldn't get generator data.");
+ return null;
+ } catch (GeneralSecurityException e) {
Log.e(TAG, "Couldn't get generator data.");
return null;
}