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

Unified Diff: content/browser/dom_storage/dom_storage_context_impl.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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: content/browser/dom_storage/dom_storage_context_impl.cc
diff --git a/content/browser/dom_storage/dom_storage_context_impl.cc b/content/browser/dom_storage/dom_storage_context_impl.cc
index 4c0046744494ea81eb34ee4127330cd5e57ceadf..58bb8f9a015268d80c13935119234ed9e8e2dc84 100644
--- a/content/browser/dom_storage/dom_storage_context_impl.cc
+++ b/content/browser/dom_storage/dom_storage_context_impl.cc
@@ -87,28 +87,30 @@ DOMStorageContextImpl::~DOMStorageContextImpl() {
void DOMStorageContextImpl::GetLocalStorageUsage(
const GetLocalStorageUsageCallback& callback) {
- DCHECK(context_);
- context_->task_runner()->PostShutdownBlockingTask(
- FROM_HERE,
- DomStorageTaskRunner::PRIMARY_SEQUENCE,
- base::Bind(&GetLocalStorageUsageHelper,
- base::MessageLoopProxy::current(),
- context_, callback));
+ DCHECK(context_.get());
+ context_->task_runner()
+ ->PostShutdownBlockingTask(FROM_HERE,
+ DomStorageTaskRunner::PRIMARY_SEQUENCE,
+ base::Bind(&GetLocalStorageUsageHelper,
+ base::MessageLoopProxy::current(),
+ context_,
+ callback));
}
void DOMStorageContextImpl::GetSessionStorageUsage(
const GetSessionStorageUsageCallback& callback) {
- DCHECK(context_);
- context_->task_runner()->PostShutdownBlockingTask(
- FROM_HERE,
- DomStorageTaskRunner::PRIMARY_SEQUENCE,
- base::Bind(&GetSessionStorageUsageHelper,
- base::MessageLoopProxy::current(),
- context_, callback));
+ DCHECK(context_.get());
+ context_->task_runner()
+ ->PostShutdownBlockingTask(FROM_HERE,
+ DomStorageTaskRunner::PRIMARY_SEQUENCE,
+ base::Bind(&GetSessionStorageUsageHelper,
+ base::MessageLoopProxy::current(),
+ context_,
+ callback));
}
void DOMStorageContextImpl::DeleteLocalStorage(const GURL& origin) {
- DCHECK(context_);
+ DCHECK(context_.get());
context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
DomStorageTaskRunner::PRIMARY_SEQUENCE,
@@ -117,16 +119,16 @@ void DOMStorageContextImpl::DeleteLocalStorage(const GURL& origin) {
void DOMStorageContextImpl::DeleteSessionStorage(
const dom_storage::SessionStorageUsageInfo& usage_info) {
- DCHECK(context_);
+ DCHECK(context_.get());
context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
DomStorageTaskRunner::PRIMARY_SEQUENCE,
- base::Bind(&DomStorageContext::DeleteSessionStorage, context_,
- usage_info));
+ base::Bind(
+ &DomStorageContext::DeleteSessionStorage, context_, usage_info));
}
void DOMStorageContextImpl::SetSaveSessionStorageOnDisk() {
- DCHECK(context_);
+ DCHECK(context_.get());
context_->SetSaveSessionStorageOnDisk();
}
@@ -138,7 +140,7 @@ DOMStorageContextImpl::RecreateSessionStorage(
}
void DOMStorageContextImpl::StartScavengingUnusedSessionStorage() {
- DCHECK(context_);
+ DCHECK(context_.get());
context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
DomStorageTaskRunner::PRIMARY_SEQUENCE,
@@ -147,7 +149,7 @@ void DOMStorageContextImpl::StartScavengingUnusedSessionStorage() {
}
void DOMStorageContextImpl::PurgeMemory() {
- DCHECK(context_);
+ DCHECK(context_.get());
context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
DomStorageTaskRunner::PRIMARY_SEQUENCE,
@@ -155,7 +157,7 @@ void DOMStorageContextImpl::PurgeMemory() {
}
void DOMStorageContextImpl::SetForceKeepSessionState() {
- DCHECK(context_);
+ DCHECK(context_.get());
context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
DomStorageTaskRunner::PRIMARY_SEQUENCE,
@@ -163,7 +165,7 @@ void DOMStorageContextImpl::SetForceKeepSessionState() {
}
void DOMStorageContextImpl::Shutdown() {
- DCHECK(context_);
+ DCHECK(context_.get());
context_->task_runner()->PostShutdownBlockingTask(
FROM_HERE,
DomStorageTaskRunner::PRIMARY_SEQUENCE,
« no previous file with comments | « content/browser/devtools/tethering_handler.cc ('k') | content/browser/dom_storage/dom_storage_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698