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

Unified Diff: webkit/browser/database/database_quota_client.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
Index: webkit/browser/database/database_quota_client.cc
diff --git a/webkit/browser/database/database_quota_client.cc b/webkit/browser/database/database_quota_client.cc
index a1ea78006ac3799eb7c370de64d60330879bc247..5902d1a7b6c8a358cd918f2308c4e0081cfff886 100644
--- a/webkit/browser/database/database_quota_client.cc
+++ b/webkit/browser/database/database_quota_client.cc
@@ -66,9 +66,8 @@ void GetOriginsForHostOnDBThread(
void DidGetOrigins(
const QuotaClient::GetOriginsCallback& callback,
- std::set<GURL>* origins_ptr,
- quota::StorageType type) {
- callback.Run(*origins_ptr, type);
+ std::set<GURL>* origins_ptr) {
+ callback.Run(*origins_ptr);
}
void DidDeleteOriginData(
@@ -151,7 +150,7 @@ void DatabaseQuotaClient::GetOriginsForType(
// All databases are in the temp namespace for now.
if (type != quota::kStorageTypeTemporary) {
- callback.Run(std::set<GURL>(), type);
+ callback.Run(std::set<GURL>());
return;
}
@@ -163,8 +162,7 @@ void DatabaseQuotaClient::GetOriginsForType(
base::Unretained(origins_ptr)),
base::Bind(&DidGetOrigins,
callback,
- base::Owned(origins_ptr),
- type));
+ base::Owned(origins_ptr)));
}
void DatabaseQuotaClient::GetOriginsForHost(
@@ -176,7 +174,7 @@ void DatabaseQuotaClient::GetOriginsForHost(
// All databases are in the temp namespace for now.
if (type != quota::kStorageTypeTemporary) {
- callback.Run(std::set<GURL>(), type);
+ callback.Run(std::set<GURL>());
return;
}
@@ -189,8 +187,7 @@ void DatabaseQuotaClient::GetOriginsForHost(
host),
base::Bind(&DidGetOrigins,
callback,
- base::Owned(origins_ptr),
- type));
+ base::Owned(origins_ptr)));
}
void DatabaseQuotaClient::DeleteOriginData(
« no previous file with comments | « webkit/appcache/appcache_quota_client_unittest.cc ('k') | webkit/browser/database/database_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698