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

Unified Diff: chrome/browser/status_icons/status_tray.h

Issue 10156004: status_icons: Fold RemoveAllIcons() into StatusTray dtor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unittest Created 8 years, 8 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
Index: chrome/browser/status_icons/status_tray.h
diff --git a/chrome/browser/status_icons/status_tray.h b/chrome/browser/status_icons/status_tray.h
index a0da771aa93c9f6ea752af5521e01430a0949f52..e35739ca05bfde326465bb72944487a2121c364d 100644
--- a/chrome/browser/status_icons/status_tray.h
+++ b/chrome/browser/status_icons/status_tray.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -32,15 +32,13 @@ class StatusTray {
void RemoveStatusIcon(StatusIcon* icon);
protected:
+ typedef std::vector<StatusIcon*> StatusIconList;
+
StatusTray();
+
// Factory method for creating a status icon for this platform.
virtual StatusIcon* CreatePlatformStatusIcon() = 0;
- // Removes all StatusIcons (used by derived classes to clean up in case they
- // track external state used by the StatusIcons).
- void RemoveAllIcons();
-
- typedef std::vector<StatusIcon*> StatusIconList;
// Returns the list of active status icons so subclasses can operate on them.
const StatusIconList& status_icons() { return status_icons_; }
« no previous file with comments | « no previous file | chrome/browser/status_icons/status_tray.cc » ('j') | chrome/browser/status_icons/status_tray.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698