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

Unified Diff: chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc

Issue 393033006: Added tab notification to accessibility_event_router_views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetTabCount returns 1 in test class Created 6 years, 5 months 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/views/tabs/browser_tab_strip_controller.cc
diff --git a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
index efb0ceb5929f1f8d438dfe2c0c98ea08e369b0d5..93e2d7dfc542839e065294813e70f529a5c1e698 100644
--- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
+++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
@@ -312,7 +312,7 @@ void BrowserTabStripController::UpdateLoadingAnimations() {
// Don't use the model count here as it's possible for this to be invoked
// before we've applied an update from the model (Browser::TabInsertedAt may
// be processed before us and invokes this).
- for (int i = 0, tab_count = tabstrip_->tab_count(); i < tab_count; ++i) {
+ for (int i = 0, tab_count = tabstrip_->GetTabCount(); i < tab_count; ++i) {
if (model_->ContainsIndex(i)) {
Tab* tab = tabstrip_->tab_at(i);
WebContents* contents = model_->GetWebContentsAt(i);

Powered by Google App Engine
This is Rietveld 408576698