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

Unified Diff: webkit/browser/fileapi/file_system_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/fileapi/file_system_quota_client.cc
diff --git a/webkit/browser/fileapi/file_system_quota_client.cc b/webkit/browser/fileapi/file_system_quota_client.cc
index 04a54fce0086a324c71806764b5b1edb5bf9329d..2377be4f98273f24ed3df22dc166c2bb9dbb7f65 100644
--- a/webkit/browser/fileapi/file_system_quota_client.cc
+++ b/webkit/browser/fileapi/file_system_quota_client.cc
@@ -60,9 +60,8 @@ void GetOriginsForHostOnFileThread(
void DidGetOrigins(
const quota::QuotaClient::GetOriginsCallback& callback,
- std::set<GURL>* origins_ptr,
- StorageType storage_type) {
- callback.Run(*origins_ptr, storage_type);
+ std::set<GURL>* origins_ptr) {
+ callback.Run(*origins_ptr);
}
quota::QuotaStatusCode DeleteOriginOnFileThread(
@@ -137,7 +136,7 @@ void FileSystemQuotaClient::GetOriginsForType(
if (is_incognito_) {
// We don't support FileSystem in incognito mode yet.
std::set<GURL> origins;
- callback.Run(origins, storage_type);
+ callback.Run(origins);
return;
}
@@ -150,8 +149,7 @@ void FileSystemQuotaClient::GetOriginsForType(
base::Unretained(origins_ptr)),
base::Bind(&DidGetOrigins,
callback,
- base::Owned(origins_ptr),
- storage_type));
+ base::Owned(origins_ptr)));
}
void FileSystemQuotaClient::GetOriginsForHost(
@@ -163,7 +161,7 @@ void FileSystemQuotaClient::GetOriginsForHost(
if (is_incognito_) {
// We don't support FileSystem in incognito mode yet.
std::set<GURL> origins;
- callback.Run(origins, storage_type);
+ callback.Run(origins);
return;
}
@@ -177,8 +175,7 @@ void FileSystemQuotaClient::GetOriginsForHost(
base::Unretained(origins_ptr)),
base::Bind(&DidGetOrigins,
callback,
- base::Owned(origins_ptr),
- storage_type));
+ base::Owned(origins_ptr)));
}
void FileSystemQuotaClient::DeleteOriginData(
« no previous file with comments | « webkit/browser/database/database_quota_client_unittest.cc ('k') | webkit/browser/fileapi/file_system_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698