Index: content/browser/in_process_webkit/indexed_db_quota_client.cc |
diff --git a/content/browser/in_process_webkit/indexed_db_quota_client.cc b/content/browser/in_process_webkit/indexed_db_quota_client.cc |
index 08e3478fd78f9a23d351b69a1c3a805b3b004652..4c3aaac2312071e613e8a82fe403add1dd012af4 100644 |
--- a/content/browser/in_process_webkit/indexed_db_quota_client.cc |
+++ b/content/browser/in_process_webkit/indexed_db_quota_client.cc |
@@ -66,7 +66,15 @@ class IndexedDBQuotaClient::GetOriginsTaskBase : public HelperTask { |
virtual bool ShouldAddOrigin(const GURL& origin) = 0; |
virtual void RunOnTargetThread() OVERRIDE { |
- // TODO(dgrogan): Implement. |
+ std::vector<string16> origin_identifiers; |
+ indexed_db_context_->GetAllOriginIdentifiers(&origin_identifiers); |
+ for (std::vector<string16>::const_iterator iter = |
+ origin_identifiers.begin(); |
+ iter != origin_identifiers.end(); ++iter) { |
+ GURL origin = DatabaseUtil::GetOriginFromIdentifier(*iter); |
+ if (ShouldAddOrigin(origin)) |
+ origins_.insert(origin); |
+ } |
} |
std::set<GURL> origins_; |