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

Unified Diff: webkit/dom_storage/dom_storage_cached_area.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/dom_storage/dom_storage_cached_area.cc
diff --git a/webkit/dom_storage/dom_storage_cached_area.cc b/webkit/dom_storage/dom_storage_cached_area.cc
index da15b0eadd5f0440f87aaf21bf0bae5a97aa4f12..0e2aae6b15b1c02528a1c9779faf05083681fec4 100644
--- a/webkit/dom_storage/dom_storage_cached_area.cc
+++ b/webkit/dom_storage/dom_storage_cached_area.cc
@@ -91,7 +91,7 @@ void DomStorageCachedArea::Clear(int connection_id, const GURL& page_url) {
void DomStorageCachedArea::ApplyMutation(
const NullableString16& key, const NullableString16& new_value) {
- if (!map_ || ignore_all_mutations_)
+ if (!map_.get() || ignore_all_mutations_)
return;
if (key.is_null()) {
@@ -135,11 +135,11 @@ void DomStorageCachedArea::ApplyMutation(
}
size_t DomStorageCachedArea::MemoryBytesUsedByCache() const {
- return map_ ? map_->bytes_used() : 0;
+ return map_.get() ? map_->bytes_used() : 0;
}
void DomStorageCachedArea::Prime(int connection_id) {
- DCHECK(!map_);
+ DCHECK(!map_.get());
// The LoadArea method is actually synchronous, but we have to
// wait for an asyncly delivered message to know when incoming
« no previous file with comments | « webkit/dom_storage/dom_storage_cached_area.h ('k') | webkit/dom_storage/dom_storage_cached_area_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698