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

Unified Diff: content/browser/indexed_db/indexed_db_quota_client_unittest.cc

Issue 15925005: [Quota][Clean up] Drop non-informative StorageType parameter on GetOriginsForType callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | « content/browser/indexed_db/indexed_db_quota_client.cc ('k') | webkit/appcache/appcache_quota_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_quota_client_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_quota_client_unittest.cc b/content/browser/indexed_db/indexed_db_quota_client_unittest.cc
index 2570f9de758bf655644e944b43f7f15b6e4e2db7..0d8628ac7128881c3fd649d4a247ea56e7a6efb3 100644
--- a/content/browser/indexed_db/indexed_db_quota_client_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_quota_client_unittest.cc
@@ -89,7 +89,6 @@ class IndexedDBQuotaClientTest : public testing::Test {
quota::QuotaClient* client,
quota::StorageType type) {
origins_.clear();
- type_ = quota::kStorageTypeTemporary;
client->GetOriginsForType(
type,
base::Bind(&IndexedDBQuotaClientTest::OnGetOriginsComplete,
@@ -103,7 +102,6 @@ class IndexedDBQuotaClientTest : public testing::Test {
quota::StorageType type,
const std::string& host) {
origins_.clear();
- type_ = quota::kStorageTypeTemporary;
client->GetOriginsForHost(
type, host,
base::Bind(&IndexedDBQuotaClientTest::OnGetOriginsComplete,
@@ -147,10 +145,8 @@ class IndexedDBQuotaClientTest : public testing::Test {
usage_ = usage;
}
- void OnGetOriginsComplete(const std::set<GURL>& origins,
- quota::StorageType type) {
+ void OnGetOriginsComplete(const std::set<GURL>& origins) {
origins_ = origins;
- type_ = type;
}
void OnDeleteOriginComplete(quota::QuotaStatusCode code) {
@@ -160,7 +156,6 @@ class IndexedDBQuotaClientTest : public testing::Test {
base::ScopedTempDir temp_dir_;
int64 usage_;
std::set<GURL> origins_;
- quota::StorageType type_;
scoped_refptr<IndexedDBContextImpl> idb_context_;
base::WeakPtrFactory<IndexedDBQuotaClientTest> weak_factory_;
base::MessageLoop message_loop_;
« no previous file with comments | « content/browser/indexed_db/indexed_db_quota_client.cc ('k') | webkit/appcache/appcache_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698