Commit 2807ac3a authored by gab@chromium.org's avatar gab@chromium.org

BrowserList iterator methods have been phased out, delete them!

BUG=129187

Review URL: https://codereview.chromium.org/12213074

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182211 0039d316-1c4b-4281-b951-d872f2087c98
parent ad45d25b
...@@ -56,16 +56,6 @@ void BrowserList::CloseAllBrowsersWithProfile(Profile* profile) { ...@@ -56,16 +56,6 @@ void BrowserList::CloseAllBrowsersWithProfile(Profile* profile) {
} }
} }
// static
BrowserList::const_iterator BrowserList::begin() {
return GetNativeList()->begin();
}
// static
BrowserList::const_iterator BrowserList::end() {
return GetNativeList()->end();
}
// static // static
bool BrowserList::empty() { bool BrowserList::empty() {
return GetNativeList()->empty(); return GetNativeList()->empty();
......
...@@ -20,7 +20,6 @@ class BrowserListObserver; ...@@ -20,7 +20,6 @@ class BrowserListObserver;
class BrowserList { class BrowserList {
public: public:
typedef std::vector<Browser*> BrowserVector; typedef std::vector<Browser*> BrowserVector;
typedef BrowserVector::const_iterator const_iterator;
typedef BrowserVector::const_reverse_iterator const_reverse_iterator; typedef BrowserVector::const_reverse_iterator const_reverse_iterator;
// Adds and removes browsers from the global list. The browser object should // Adds and removes browsers from the global list. The browser object should
...@@ -39,11 +38,6 @@ class BrowserList { ...@@ -39,11 +38,6 @@ class BrowserList {
// Closes all browsers for |profile| across all desktops. // Closes all browsers for |profile| across all desktops.
static void CloseAllBrowsersWithProfile(Profile* profile); static void CloseAllBrowsersWithProfile(Profile* profile);
// Browsers are added to the list before they have constructed windows,
// so the |window()| member function may return NULL.
static const_iterator begin();
static const_iterator end();
static bool empty(); static bool empty();
static size_t size(); static size_t size();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment