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

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

Issue 18147009: IndexedDB: Remove unnecessary scoped_refptr<T>::get() calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format Created 7 years, 6 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/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 8905334c85cb3a00a955dd2e984fbeb5609d2270..1b187c5133978ecf27879d743247ada74d762398 100644
--- a/content/browser/indexed_db/indexed_db_quota_client.cc
+++ b/content/browser/indexed_db/indexed_db_quota_client.cc
@@ -26,13 +26,13 @@ quota::QuotaStatusCode DeleteOriginDataOnIndexedDBThread(
}
int64 GetOriginUsageOnIndexedDBThread(IndexedDBContextImpl* context,
- const GURL& origin) {
+ const GURL& origin) {
DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
return context->GetOriginDiskUsage(origin);
}
void GetAllOriginsOnIndexedDBThread(IndexedDBContextImpl* context,
- std::set<GURL>* origins_to_return) {
+ std::set<GURL>* origins_to_return) {
DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
std::vector<GURL> all_origins = context->GetAllOrigins();
origins_to_return->insert(all_origins.begin(), all_origins.end());
@@ -45,8 +45,8 @@ void DidGetOrigins(const IndexedDBQuotaClient::GetOriginsCallback& callback,
}
void GetOriginsForHostOnIndexedDBThread(IndexedDBContextImpl* context,
- const std::string& host,
- std::set<GURL>* origins_to_return) {
+ const std::string& host,
+ std::set<GURL>* origins_to_return) {
DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
std::vector<GURL> all_origins = context->GetAllOrigins();
for (std::vector<GURL>::const_iterator iter = all_origins.begin();
@@ -75,7 +75,7 @@ void IndexedDBQuotaClient::GetOriginUsage(const GURL& origin_url,
quota::StorageType type,
const GetUsageCallback& callback) {
DCHECK(!callback.is_null());
- DCHECK(indexed_db_context_.get());
+ DCHECK(indexed_db_context_);
// IndexedDB is in the temp namespace for now.
if (type != quota::kStorageTypeTemporary) {
@@ -89,7 +89,7 @@ void IndexedDBQuotaClient::GetOriginUsage(const GURL& origin_url,
return;
}
- base::PostTaskAndReplyWithResult(
+ base::PostTaskAndReplyWithResult(
indexed_db_context_->TaskRunner(),
FROM_HERE,
base::Bind(
@@ -101,7 +101,7 @@ void IndexedDBQuotaClient::GetOriginsForType(
quota::StorageType type,
const GetOriginsCallback& callback) {
DCHECK(!callback.is_null());
- DCHECK(indexed_db_context_.get());
+ DCHECK(indexed_db_context_);
// All databases are in the temp namespace for now.
if (type != quota::kStorageTypeTemporary) {
@@ -129,7 +129,7 @@ void IndexedDBQuotaClient::GetOriginsForHost(
const std::string& host,
const GetOriginsCallback& callback) {
DCHECK(!callback.is_null());
- DCHECK(indexed_db_context_.get());
+ DCHECK(indexed_db_context_);
// All databases are in the temp namespace for now.
if (type != quota::kStorageTypeTemporary) {
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.cc ('k') | 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