summaryrefslogtreecommitdiffstats
path: root/base/observer_list.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-03 22:15:21 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-03 22:15:21 +0000
commitf0737afdfa797f20c8ba9a105a56e360420f00eb (patch)
tree42f2912366f37dc54e749fd5aa33d31849867bf1 /base/observer_list.h
parentfc10dd4eb4a6e7164ef8418749ef5418cba8b40a (diff)
downloadchromium_src-f0737afdfa797f20c8ba9a105a56e360420f00eb.zip
chromium_src-f0737afdfa797f20c8ba9a105a56e360420f00eb.tar.gz
chromium_src-f0737afdfa797f20c8ba9a105a56e360420f00eb.tar.bz2
Update base/ to use WeakPtr<T>::get() instead of implicit "operator T*"
BUG=245942 TBR=ajwong@chromium.org Review URL: https://codereview.chromium.org/15836004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203782 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/observer_list.h')
-rw-r--r--base/observer_list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/observer_list.h b/base/observer_list.h
index 364b180..20f183d 100644
--- a/base/observer_list.h
+++ b/base/observer_list.h
@@ -89,12 +89,12 @@ class ObserverListBase
}
~Iterator() {
- if (list_ && --list_->notify_depth_ == 0)
+ if (list_.get() && --list_->notify_depth_ == 0)
list_->Compact();
}
ObserverType* GetNext() {
- if (!list_)
+ if (!list_.get())
return NULL;
ListType& observers = list_->observers_;
// Advance if the current element is null