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

Unified Diff: content/renderer/dom_storage/dom_storage_dispatcher.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/renderer/dom_storage/dom_storage_dispatcher.cc
diff --git a/content/renderer/dom_storage/dom_storage_dispatcher.cc b/content/renderer/dom_storage/dom_storage_dispatcher.cc
index e7464404435b3bbeaf9a342a2c33a8e09e8fb2f0..2ad1f673cd16da3b63f4f82069a8decac5deb0bf 100644
--- a/content/renderer/dom_storage/dom_storage_dispatcher.cc
+++ b/content/renderer/dom_storage/dom_storage_dispatcher.cc
@@ -175,7 +175,7 @@ class DomStorageDispatcher::ProxyImpl : public DomStorageProxy {
DomStorageDispatcher::ProxyImpl::ProxyImpl(RenderThreadImpl* sender)
: sender_(sender),
throttling_filter_(new MessageThrottlingFilter(sender)) {
- sender_->AddFilter(throttling_filter_);
+ sender_->AddFilter(throttling_filter_.get());
}
DomStorageCachedArea* DomStorageDispatcher::ProxyImpl::OpenCachedArea(
@@ -183,11 +183,11 @@ DomStorageCachedArea* DomStorageDispatcher::ProxyImpl::OpenCachedArea(
std::string key = GetCachedAreaKey(namespace_id, origin);
if (CachedAreaHolder* holder = GetAreaHolder(key)) {
++(holder->open_count_);
- return holder->area_;
+ return holder->area_.get();
}
scoped_refptr<DomStorageCachedArea> area =
new DomStorageCachedArea(namespace_id, origin, this);
- cached_areas_[key] = CachedAreaHolder(area, 1);
+ cached_areas_[key] = CachedAreaHolder(area.get(), 1);
return area.get();
}
@@ -218,7 +218,7 @@ void DomStorageDispatcher::ProxyImpl::CompleteOnePendingCallback(bool success) {
void DomStorageDispatcher::ProxyImpl::Shutdown() {
throttling_filter_->Shutdown();
- sender_->RemoveFilter(throttling_filter_);
+ sender_->RemoveFilter(throttling_filter_.get());
sender_ = NULL;
cached_areas_.clear();
pending_callbacks_.clear();

Powered by Google App Engine
This is Rietveld 408576698