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

Unified Diff: webkit/dom_storage/dom_storage_cached_area.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 6b20886bcb27d9894d4cbb3fb06175a08b3923a9..eefcaa1115f28587617b80cf58279461b2acbe4f 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()) {
@@ -134,11 +134,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