diff options
author | Ben Murdoch <benm@google.com> | 2011-09-15 12:47:48 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-09-15 13:00:43 +0100 |
commit | 327e3ac66da7b67dadf16e93dc3a8bb5ecf0efd0 (patch) | |
tree | 95bcec242cdc6b78d81148c17981d196492742c5 /src/com/android/browser/WebStorageSizeManager.java | |
parent | ef4a243155bec06dfa88039e3b76f5709f014993 (diff) | |
download | packages_apps_Browser-327e3ac66da7b67dadf16e93dc3a8bb5ecf0efd0.zip packages_apps_Browser-327e3ac66da7b67dadf16e93dc3a8bb5ecf0efd0.tar.gz packages_apps_Browser-327e3ac66da7b67dadf16e93dc3a8bb5ecf0efd0.tar.bz2 |
Fix WebStorageSizeManagerUnitTest NPE
Previously we passed a null Context into the WebStorageSizeManager
from the unit test. After the refactoring to get the
application context from the passed in Context, this no longer
works. So pass in a valid Context.
(See Ib0be5f8c for the regression)
Bug: 5319628
Change-Id: I691e2edb0a4174076c7599525569d104a83d3442
Diffstat (limited to 'src/com/android/browser/WebStorageSizeManager.java')
-rw-r--r-- | src/com/android/browser/WebStorageSizeManager.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/com/android/browser/WebStorageSizeManager.java b/src/com/android/browser/WebStorageSizeManager.java index 109a02b..73a3bfb 100644 --- a/src/com/android/browser/WebStorageSizeManager.java +++ b/src/com/android/browser/WebStorageSizeManager.java @@ -392,10 +392,6 @@ public class WebStorageSizeManager { if(LOGV_ENABLED) { Log.v(LOGTAG, "scheduleOutOfSpaceNotification called."); } - if (mContext == null) { - // mContext can be null if we're running unit tests. - return; - } if ((mLastOutOfSpaceNotificationTime == -1) || (System.currentTimeMillis() - mLastOutOfSpaceNotificationTime > NOTIFICATION_INTERVAL)) { // setup the notification boilerplate. |