You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/12/06 16:08:13 UTC
git commit: Apply CB-5193 to InAppBrowser
Updated Branches:
refs/heads/dev 034b59931 -> e819041fd
Apply CB-5193 to InAppBrowser
>From pull request:
https://github.com/apache/cordova-plugin-inappbrowser/pull/11
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/e819041f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/e819041f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/e819041f
Branch: refs/heads/dev
Commit: e819041fd411d728c635a122f404ba6184fea640
Parents: 034b599
Author: Dick van den Brink <d_...@live.com>
Authored: Mon Nov 11 18:32:39 2013 +0100
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Dec 6 10:07:41 2013 -0500
----------------------------------------------------------------------
src/android/InAppChromeClient.java | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/e819041f/src/android/InAppChromeClient.java
----------------------------------------------------------------------
diff --git a/src/android/InAppChromeClient.java b/src/android/InAppChromeClient.java
index 2c240c6..f3fc741 100644
--- a/src/android/InAppChromeClient.java
+++ b/src/android/InAppChromeClient.java
@@ -38,20 +38,7 @@ public class InAppChromeClient extends WebChromeClient {
long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
{
LOG.d(LOG_TAG, "onExceededDatabaseQuota estimatedSize: %d currentQuota: %d totalUsedQuota: %d", estimatedSize, currentQuota, totalUsedQuota);
-
- if (estimatedSize < MAX_QUOTA)
- {
- //increase for 1Mb
- long newQuota = estimatedSize;
- LOG.d(LOG_TAG, "calling quotaUpdater.updateQuota newQuota: %d", newQuota);
- quotaUpdater.updateQuota(newQuota);
- }
- else
- {
- // Set the quota to whatever it is and force an error
- // TODO: get docs on how to handle this properly
- quotaUpdater.updateQuota(currentQuota);
- }
+ quotaUpdater.updateQuota(MAX_QUOTA);
}
/**