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

Unified Diff: third_party/WebKit/Source/modules/quota/StorageQuotaCallbacksImpl.cpp

Issue 2585563002: Quota: StorageInfo should be a dictionary (Closed)
Patch Set: Created 4 years 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 | « third_party/WebKit/Source/modules/quota/StorageInfo.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/quota/StorageQuotaCallbacksImpl.cpp
diff --git a/third_party/WebKit/Source/modules/quota/StorageQuotaCallbacksImpl.cpp b/third_party/WebKit/Source/modules/quota/StorageQuotaCallbacksImpl.cpp
index 69b3bb795a198ddf98ecc46b6bcfc4eee2cd60a7..4315afa1c5baff40ceff124c44ed3955db0cc18e 100644
--- a/third_party/WebKit/Source/modules/quota/StorageQuotaCallbacksImpl.cpp
+++ b/third_party/WebKit/Source/modules/quota/StorageQuotaCallbacksImpl.cpp
@@ -44,13 +44,19 @@ StorageQuotaCallbacksImpl::~StorageQuotaCallbacksImpl() {}
void StorageQuotaCallbacksImpl::didQueryStorageUsageAndQuota(
unsigned long long usageInBytes,
unsigned long long quotaInBytes) {
- m_resolver->resolve(StorageInfo::create(usageInBytes, quotaInBytes));
+ StorageInfo info;
+ info.setUsage(usageInBytes);
+ info.setQuota(quotaInBytes);
+ m_resolver->resolve(info);
}
void StorageQuotaCallbacksImpl::didGrantStorageQuota(
unsigned long long usageInBytes,
unsigned long long grantedQuotaInBytes) {
- m_resolver->resolve(StorageInfo::create(usageInBytes, grantedQuotaInBytes));
+ StorageInfo info;
+ info.setUsage(usageInBytes);
+ info.setQuota(grantedQuotaInBytes);
+ m_resolver->resolve(info);
}
void StorageQuotaCallbacksImpl::didFail(WebStorageQuotaError error) {
« no previous file with comments | « third_party/WebKit/Source/modules/quota/StorageInfo.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698