diff options
author | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-12 06:44:20 +0000 |
---|---|---|
committer | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-12 06:44:20 +0000 |
commit | b4207c4a04f7e7cea2a93446786d443a5ec19bd3 (patch) | |
tree | 3ba747d2b0ee1819f671ecb28ef57a43301822ab /chrome/browser/chromeos/boot_times_loader.cc | |
parent | 026a6b263196cc082d3c296e154572a9c7abcb7a (diff) | |
download | chromium_src-b4207c4a04f7e7cea2a93446786d443a5ec19bd3.zip chromium_src-b4207c4a04f7e7cea2a93446786d443a5ec19bd3.tar.gz chromium_src-b4207c4a04f7e7cea2a93446786d443a5ec19bd3.tar.bz2 |
Swap deprecated BrowserList:: iterators for BrowserIterator in code not compiled in WinAura builds.
Hardcoding HOST_DESKTOP_TYPE where necessary.
BUG=129187
Review URL: https://chromiumcodereview.appspot.com/12213075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181887 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/boot_times_loader.cc')
-rw-r--r-- | chrome/browser/chromeos/boot_times_loader.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/chromeos/boot_times_loader.cc b/chrome/browser/chromeos/boot_times_loader.cc index 8e522d4..e39005e 100644 --- a/chrome/browser/chromeos/boot_times_loader.cc +++ b/chrome/browser/chromeos/boot_times_loader.cc @@ -25,7 +25,7 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/chromeos/login/authentication_notification_details.h" #include "chrome/browser/ui/browser.h" -#include "chrome/browser/ui/browser_list.h" +#include "chrome/browser/ui/browser_iterator.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_switches.h" @@ -56,9 +56,7 @@ RenderWidgetHost* GetRenderWidgetHost(NavigationController* tab) { const std::string GetTabUrl(RenderWidgetHost* rwh) { RenderWidgetHostView* rwhv = rwh->GetView(); - for (BrowserList::const_iterator it = BrowserList::begin(); - it != BrowserList::end(); - ++it) { + for (chrome::BrowserIterator it; !it.done(); it.Next()) { Browser* browser = *it; for (int i = 0, tab_count = browser->tab_strip_model()->count(); i < tab_count; |