summaryrefslogtreecommitdiffstats
path: root/chrome/browser/status_icons
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 21:17:55 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 21:17:55 +0000
commitac441231485802dd005f8de1c8da01789ef014a3 (patch)
tree0fee0191402b2f0c2cc2229ad70a735b4c7cc0e8 /chrome/browser/status_icons
parent2a47304dbad574ef333d7d261822250202127ff3 (diff)
downloadchromium_src-ac441231485802dd005f8de1c8da01789ef014a3.zip
chromium_src-ac441231485802dd005f8de1c8da01789ef014a3.tar.gz
chromium_src-ac441231485802dd005f8de1c8da01789ef014a3.tar.bz2
status_icons: Use STLDeleteElements on StatusTray::RemoveAllIcons().
BUG=None TEST=None R=atwilson@chromium.org Review URL: http://codereview.chromium.org/6929019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/status_icons')
-rw-r--r--chrome/browser/status_icons/status_tray.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/status_icons/status_tray.cc b/chrome/browser/status_icons/status_tray.cc
index 8648351..84de8e0 100644
--- a/chrome/browser/status_icons/status_tray.cc
+++ b/chrome/browser/status_icons/status_tray.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -17,9 +17,7 @@ StatusTray::~StatusTray() {
}
void StatusTray::RemoveAllIcons() {
- // Walk any active status icons and delete them.
- STLDeleteContainerPointers(status_icons_.begin(), status_icons_.end());
- status_icons_.clear();
+ STLDeleteElements(&status_icons_);
}
StatusIcon* StatusTray::CreateStatusIcon() {