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

Unified Diff: chrome/browser/ui/webui/quota_internals_proxy.cc

Issue 13357004: Clear browsing data clears data for type kStorageTypeTemporary but not for kStorageTypeSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 8 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
Index: chrome/browser/ui/webui/quota_internals_proxy.cc
diff --git a/chrome/browser/ui/webui/quota_internals_proxy.cc b/chrome/browser/ui/webui/quota_internals_proxy.cc
index 8f6c6179a0faf87ebbaea8da6e488d2f5ae70d23..5adfea9fbe7f94037aa6910f4146351cffd25bd6 100644
--- a/chrome/browser/ui/webui/quota_internals_proxy.cc
+++ b/chrome/browser/ui/webui/quota_internals_proxy.cc
@@ -50,6 +50,11 @@ void QuotaInternalsProxy::RequestInfo(
base::Bind(&QuotaInternalsProxy::DidGetGlobalUsage,
weak_factory_.GetWeakPtr()));
+ quota_manager_->GetGlobalUsage(
+ quota::kStorageTypeSyncable,
+ base::Bind(&QuotaInternalsProxy::DidGetGlobalUsage,
+ weak_factory_.GetWeakPtr()));
+
quota_manager_->DumpQuotaTable(
base::Bind(&QuotaInternalsProxy::DidDumpQuotaTable,
weak_factory_.GetWeakPtr()));
@@ -150,7 +155,8 @@ void QuotaInternalsProxy::DidGetHostUsage(const std::string& host,
quota::StorageType type,
int64 usage) {
DCHECK(type == quota::kStorageTypeTemporary ||
- type == quota::kStorageTypePersistent);
+ type == quota::kStorageTypePersistent ||
+ type == quota::kStorageTypeSyncable);
PerHostStorageInfo info(host, type);
info.set_usage(usage);

Powered by Google App Engine
This is Rietveld 408576698