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

Unified Diff: webkit/browser/quota/usage_tracker.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
« no previous file with comments | « webkit/browser/quota/quota_task.h ('k') | webkit/common/blob/scoped_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/quota/usage_tracker.cc
diff --git a/webkit/browser/quota/usage_tracker.cc b/webkit/browser/quota/usage_tracker.cc
index 07f6b16f9fede460e2aabc65ebf7844fcc16c71c..6f9f1358e5f5b25df1c21c13d4153674ad174fea 100644
--- a/webkit/browser/quota/usage_tracker.cc
+++ b/webkit/browser/quota/usage_tracker.cc
@@ -279,12 +279,12 @@ ClientUsageTracker::ClientUsageTracker(
special_storage_policy_(special_storage_policy) {
DCHECK(tracker_);
DCHECK(client_);
- if (special_storage_policy_)
+ if (special_storage_policy_.get())
special_storage_policy_->AddObserver(this);
}
ClientUsageTracker::~ClientUsageTracker() {
- if (special_storage_policy_)
+ if (special_storage_policy_.get())
special_storage_policy_->RemoveObserver(this);
}
« no previous file with comments | « webkit/browser/quota/quota_task.h ('k') | webkit/common/blob/scoped_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698