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

Unified Diff: content/test/data/android/quota_permissions.html

Issue 2703253005: Support PermissionRequestManager for quota permissions on Android. (Closed)
Patch Set: add a test Created 3 years, 9 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 | « chrome/browser/chrome_quota_permission_context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/android/quota_permissions.html
diff --git a/content/test/data/android/quota_permissions.html b/content/test/data/android/quota_permissions.html
new file mode 100644
index 0000000000000000000000000000000000000000..032cf79456581834d59d58700c1141bbec9b4d3e
--- /dev/null
+++ b/content/test/data/android/quota_permissions.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>Quota</title>
+<script>
+successCount = 0;
+function successCallback(grantedBytes) {
+ successCount++;
+ window.document.title = 'Count: ' + successCount;
+}
+function errorCallback(error){
+ window.document.title = 'deny';
+ console.log('navigator.webkitPersistentStorage.requestQuota error: ', error);
+}
+function initiate_requestQuota(requestedBytes) {
+ navigator.webkitPersistentStorage.requestQuota(
+ requestedBytes, successCallback, errorCallback);
+}
+</script>
« no previous file with comments | « chrome/browser/chrome_quota_permission_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698