summaryrefslogtreecommitdiffstats
path: root/webkit/dom_storage/dom_storage_host.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-02 23:47:38 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-02 23:47:38 +0000
commitff875be5f3f3db4cdc5bbfe4a014580867c7a044 (patch)
treee59c4716dc0b4bd427dd84bfa8e15a16aaf50eab /webkit/dom_storage/dom_storage_host.cc
parented264deb5072425ac355bf4b4cc3d43059ddae94 (diff)
downloadchromium_src-ff875be5f3f3db4cdc5bbfe4a014580867c7a044.zip
chromium_src-ff875be5f3f3db4cdc5bbfe4a014580867c7a044.tar.gz
chromium_src-ff875be5f3f3db4cdc5bbfe4a014580867c7a044.tar.bz2
Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*"
Linux fixes BUG=110610 TBR=darin Review URL: https://chromiumcodereview.appspot.com/16155009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203636 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/dom_storage/dom_storage_host.cc')
-rw-r--r--webkit/dom_storage/dom_storage_host.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/webkit/dom_storage/dom_storage_host.cc b/webkit/dom_storage/dom_storage_host.cc
index 7f4fca1..4d53d7a 100644
--- a/webkit/dom_storage/dom_storage_host.cc
+++ b/webkit/dom_storage/dom_storage_host.cc
@@ -19,7 +19,7 @@ DomStorageHost::DomStorageHost(DomStorageContext* context)
DomStorageHost::~DomStorageHost() {
AreaMap::const_iterator it = connections_.begin();
for (; it != connections_.end(); ++it)
- it->second.namespace_->CloseStorageArea(it->second.area_);
+ it->second.namespace_->CloseStorageArea(it->second.area_.get());
connections_.clear(); // Clear prior to releasing the context_
}
@@ -30,14 +30,14 @@ bool DomStorageHost::OpenStorageArea(int connection_id, int namespace_id,
return false; // Indicates the renderer gave us very bad data.
NamespaceAndArea references;
references.namespace_ = context_->GetStorageNamespace(namespace_id);
- if (!references.namespace_) {
+ if (!references.namespace_.get()) {
// TODO(michaeln): Fix crbug/134003 and return false here.
// Until then return true to avoid crashing the renderer for
// sending a bad message.
return true;
}
references.area_ = references.namespace_->OpenStorageArea(origin);
- DCHECK(references.area_);
+ DCHECK(references.area_.get());
connections_[connection_id] = references;
return true;
}
@@ -46,8 +46,7 @@ void DomStorageHost::CloseStorageArea(int connection_id) {
AreaMap::iterator found = connections_.find(connection_id);
if (found == connections_.end())
return;
- found->second.namespace_->CloseStorageArea(
- found->second.area_);
+ found->second.namespace_->CloseStorageArea(found->second.area_.get());
connections_.erase(found);
}
@@ -152,14 +151,14 @@ DomStorageArea* DomStorageHost::GetOpenArea(int connection_id) {
AreaMap::iterator found = connections_.find(connection_id);
if (found == connections_.end())
return NULL;
- return found->second.area_;
+ return found->second.area_.get();
}
DomStorageNamespace* DomStorageHost::GetNamespace(int connection_id) {
AreaMap::iterator found = connections_.find(connection_id);
if (found == connections_.end())
return NULL;
- return found->second.namespace_;
+ return found->second.namespace_.get();
}
// NamespaceAndArea