| Index: chrome/browser/ui/tab_contents/tab_contents_iterator.h
|
| diff --git a/chrome/browser/ui/tab_contents/tab_contents_iterator.h b/chrome/browser/ui/tab_contents/tab_contents_iterator.h
|
| index 13bfba058a9fc9af4ad8c3720dce8ddb1195d9ef..f90a5eb41206091eb55f1eeaf39658c235481dbc 100644
|
| --- a/chrome/browser/ui/tab_contents/tab_contents_iterator.h
|
| +++ b/chrome/browser/ui/tab_contents/tab_contents_iterator.h
|
| @@ -8,7 +8,7 @@
|
| #include <set>
|
|
|
| #include "base/macros.h"
|
| -#include "chrome/browser/ui/browser_iterator.h"
|
| +#include "chrome/browser/ui/browser_list.h"
|
|
|
| namespace content {
|
| class WebContents;
|
| @@ -36,7 +36,7 @@ class TabContentsIterator {
|
| // Returns the Browser instance associated with the current
|
| // WebContents. Valid as long as !done().
|
| Browser* browser() const {
|
| - if (!browser_iterator_.done())
|
| + if (browser_iterator_ != BrowserList::GetInstance()->end())
|
| return *browser_iterator_;
|
| return NULL;
|
| }
|
| @@ -64,7 +64,7 @@ class TabContentsIterator {
|
| content::WebContents* cur_;
|
|
|
| // An iterator over all the browsers.
|
| - chrome::BrowserIterator browser_iterator_;
|
| + BrowserList::const_iterator browser_iterator_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TabContentsIterator);
|
| };
|
|
|