| Index: content/public/android/java/src/org/chromium/content/browser/crypto/CipherFactory.java
|
| 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 b6ff368f8f097063dda3eb9a85ff3e6a77f68831..7b1f8ee9fa7336326477eb1ee2c6998adc390446 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;
|
| }
|
|
|