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

Unified Diff: content/browser/indexed_db/indexed_db_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
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_quota_client_unittest.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.cc
diff --git a/content/browser/indexed_db/indexed_db_quota_client.cc b/content/browser/indexed_db/indexed_db_quota_client.cc
index d0b0272b9976f0fb6a2c9404078d35145a672dfd..25f9668d0f9d2119233daa3eac4bec02a72fa62a 100644
--- a/content/browser/indexed_db/indexed_db_quota_client.cc
+++ b/content/browser/indexed_db/indexed_db_quota_client.cc
@@ -43,10 +43,9 @@ void GetAllOriginsOnWebKitThread(
void DidGetOrigins(
const IndexedDBQuotaClient::GetOriginsCallback& callback,
- const std::set<GURL>* origins,
- quota::StorageType storage_type) {
+ const std::set<GURL>* origins) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- callback.Run(*origins, storage_type);
+ callback.Run(*origins);
}
void GetOriginsForHostOnWebKitThread(
@@ -114,7 +113,7 @@ void IndexedDBQuotaClient::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;
}
@@ -126,8 +125,7 @@ void IndexedDBQuotaClient::GetOriginsForType(
base::Unretained(origins_to_return)),
base::Bind(&DidGetOrigins,
callback,
- base::Owned(origins_to_return),
- type));
+ base::Owned(origins_to_return)));
}
void IndexedDBQuotaClient::GetOriginsForHost(
@@ -139,7 +137,7 @@ void IndexedDBQuotaClient::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;
}
@@ -152,8 +150,7 @@ void IndexedDBQuotaClient::GetOriginsForHost(
base::Unretained(origins_to_return)),
base::Bind(&DidGetOrigins,
callback,
- base::Owned(origins_to_return),
- type));
+ base::Owned(origins_to_return)));
}
void IndexedDBQuotaClient::DeleteOriginData(
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698