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 |