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

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: atwilson review 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
« no previous file with comments | « no previous file | chrome/browser/status_icons/status_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..047f814fa2e91d7a742e019788bdb6e362f23b49 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.
@@ -28,19 +28,17 @@ class StatusTray {
// StatusIcon. Returns NULL if the StatusIcon could not be created.
StatusIcon* CreateStatusIcon();
- // Removes the current status icon associated with this identifier, if any.
+ // Removes |icon| from this status tray.
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698