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

Unified Diff: content/browser/in_process_webkit/indexed_db_quota_client.cc

Issue 7692016: Delete indexedDBs from the cookie tree ui. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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: content/browser/in_process_webkit/indexed_db_quota_client.cc
===================================================================
--- content/browser/in_process_webkit/indexed_db_quota_client.cc (revision 97928)
+++ content/browser/in_process_webkit/indexed_db_quota_client.cc (working copy)
@@ -88,14 +88,12 @@
virtual bool ShouldAddOrigin(const GURL& origin) = 0;
virtual void RunOnTargetThread() OVERRIDE {
- 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::vector<GURL> origins;
+ indexed_db_context_->GetAllOrigins(&origins);
+ for (std::vector<GURL>::const_iterator iter = origins.begin();
+ iter != origins.end(); ++iter) {
+ if (ShouldAddOrigin(*iter))
+ origins_.insert(*iter);
}
}

Powered by Google App Engine
This is Rietveld 408576698