diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-29 18:17:29 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-29 18:17:29 +0000 |
commit | 121594b409d3d7459ae7a8068e2bae9b8b222d0f (patch) | |
tree | ba3c5479ba02191591a18722b13f2050a28e52eb /base | |
parent | b49ec50466482cdc03d827d6fd53485a3efffd7b (diff) | |
download | chromium_src-121594b409d3d7459ae7a8068e2bae9b8b222d0f.zip chromium_src-121594b409d3d7459ae7a8068e2bae9b8b222d0f.tar.gz chromium_src-121594b409d3d7459ae7a8068e2bae9b8b222d0f.tar.bz2 |
Clean up some Observer code. Original patch by Thiago Farina (see http://codereview.chromium.org/1725007 ), r=me.
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/observer_list.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/base/observer_list.h b/base/observer_list.h index 0b4c583..10c6775 100644 --- a/base/observer_list.h +++ b/base/observer_list.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -149,11 +149,9 @@ class ObserverListBase { } } - protected: - size_t size() const { - return observers_.size(); - } + size_t size() const { return observers_.size(); } + protected: void Compact() { typename ListType::iterator it = observers_.begin(); while (it != observers_.end()) { |