Index: base/observer_list.h |
diff --git a/base/observer_list.h b/base/observer_list.h |
index 364b180118ffbec8fc57566406734cc6ece24030..20f183d9cc543821ef4e393b0f813d3782059834 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 |