Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1500)

Unified Diff: android_webview/browser/aw_quota_permission_context.cc

Issue 12253057: Implement WebStorage API methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/browser/native_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_quota_permission_context.cc
diff --git a/android_webview/browser/aw_quota_permission_context.cc b/android_webview/browser/aw_quota_permission_context.cc
index ce3a2c34945c2f351fc6ec17ec22ee94b88c02ad..9017418cc22b9c02161de5390deefe0dde4ee872 100644
--- a/android_webview/browser/aw_quota_permission_context.cc
+++ b/android_webview/browser/aw_quota_permission_context.cc
@@ -26,10 +26,11 @@ void AwQuotaPermissionContext::RequestQuotaPermission(
if (type != quota::kStorageTypePersistent) {
callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW);
} else {
- // TODO(boliu): Implement this to power
- // WebChromeClient.onExceededDatabaseQuota
- NOTIMPLEMENTED();
- callback.Run(QUOTA_PERMISSION_RESPONSE_CANCELLED);
+ if (new_quota > 10 * 1024 * 1024) {
mnaganov (inactive) 2013/02/15 10:06:23 We shouldn't have persistent storage in WebView no
+ callback.Run(QUOTA_PERMISSION_RESPONSE_DISALLOW);
+ } else {
+ callback.Run(QUOTA_PERMISSION_RESPONSE_ALLOW);
+ }
}
}
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | android_webview/browser/native_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698