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

Unified Diff: chrome/browser/ui/browser_list.h

Issue 8590003: chrome: Remove 11 exit time destructors and 4 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no gyp changes :-( Created 9 years, 1 month 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/ui/browser_list.h
diff --git a/chrome/browser/ui/browser_list.h b/chrome/browser/ui/browser_list.h
index 447f6cb907cb255bfbb90baad7af1f46d35c752a..700c51a5fe82fbc412e844e22d9618e04220c924 100644
--- a/chrome/browser/ui/browser_list.h
+++ b/chrome/browser/ui/browser_list.h
@@ -170,25 +170,20 @@ class BrowserList {
// closes.
static bool WillKeepAlive();
- // Browsers are added to |browsers_| before they have constructed windows,
+ // Browsers are added to the list before they have constructed windows,
// so the |window()| member function may return NULL.
- static const_iterator begin() { return browsers_.begin(); }
- static const_iterator end() { return browsers_.end(); }
+ static const_iterator begin();
+ static const_iterator end();
- static bool empty() { return browsers_.empty(); }
- static size_t size() { return browsers_.size(); }
+ static bool empty();
+ static size_t size();
// Returns iterated access to list of open browsers ordered by when
// they were last active. The underlying data structure is a vector
// and we push_back on recent access so a reverse iterator gives the
// latest accessed browser first.
- static const_reverse_iterator begin_last_active() {
- return last_active_browsers_.rbegin();
- }
-
- static const_reverse_iterator end_last_active() {
- return last_active_browsers_.rend();
- }
+ static const_reverse_iterator begin_last_active();
+ static const_reverse_iterator end_last_active();
// Return the number of browsers with the following profile which are
// currently open.
@@ -217,10 +212,6 @@ class BrowserList {
static void MarkAsCleanShutdown();
static void AttemptExitInternal();
- static BrowserVector browsers_;
- static BrowserVector last_active_browsers_;
- static ObserverList<Observer> observers_;
-
// Counter of calls to StartKeepAlive(). If non-zero, the application will
// continue running after the last browser has exited.
static int keep_alive_count_;

Powered by Google App Engine
This is Rietveld 408576698