diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-13 00:42:38 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-13 00:42:38 +0000 |
commit | 5583d098ed6ff3615022ec7fc9d8c8db7beafc92 (patch) | |
tree | 615d7bfd5e92a25166256b4199037a9190608971 /chrome/browser/chromeos/boot_times_loader.cc | |
parent | 37386f05316698320c6cc32359ffc445a710f113 (diff) | |
download | chromium_src-5583d098ed6ff3615022ec7fc9d8c8db7beafc92.zip chromium_src-5583d098ed6ff3615022ec7fc9d8c8db7beafc92.tar.gz chromium_src-5583d098ed6ff3615022ec7fc9d8c8db7beafc92.tar.bz2 |
Remove tab_count from Browser.
BUG=167548
TEST=no functional change
Review URL: https://chromiumcodereview.appspot.com/11858021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176602 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 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/boot_times_loader.cc b/chrome/browser/chromeos/boot_times_loader.cc index 4aac9e2..f1038beb 100644 --- a/chrome/browser/chromeos/boot_times_loader.cc +++ b/chrome/browser/chromeos/boot_times_loader.cc @@ -26,7 +26,7 @@ #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_tabstrip.h" +#include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/chrome_switches.h" #include "content/public/browser/browser_thread.h" @@ -60,8 +60,10 @@ const std::string GetTabUrl(RenderWidgetHost* rwh) { it != BrowserList::end(); ++it) { Browser* browser = *it; - for (int i = 0, tab_count = browser->tab_count(); i < tab_count; ++i) { - WebContents* tab = chrome::GetWebContentsAt(browser, i); + for (int i = 0, tab_count = browser->tab_strip_model()->count(); + i < tab_count; + ++i) { + WebContents* tab = browser->tab_strip_model()->GetWebContentsAt(i); if (tab->GetRenderWidgetHostView() == rwhv) { return tab->GetURL().spec(); } |