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

Unified Diff: chrome/browser/ui/views/ash/tab_scrubber.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/ash/tab_scrubber.cc
diff --git a/chrome/browser/ui/views/ash/tab_scrubber.cc b/chrome/browser/ui/views/ash/tab_scrubber.cc
index 49ef35aca62a7f0dac0a24198e480fb443679fdb..d3e426d5b10e880f29976c42c2b6ce9d935dbe9a 100644
--- a/chrome/browser/ui/views/ash/tab_scrubber.cc
+++ b/chrome/browser/ui/views/ash/tab_scrubber.cc
@@ -145,7 +145,7 @@ void TabScrubber::OnScrollEvent(ui::ScrollEvent* event) {
swipe_x_ += x_offset;
Tab* first_tab = tab_strip->tab_at(0);
int first_tab_center = first_tab->bounds().CenterPoint().x();
- Tab* last_tab = tab_strip->tab_at(tab_strip->tab_count() - 1);
+ Tab* last_tab = tab_strip->tab_at(tab_strip->GetTabCount() - 1);
int last_tab_tab_center = last_tab->bounds().CenterPoint().x();
if (swipe_x_ < first_tab_center)
swipe_x_ = first_tab_center;

Powered by Google App Engine
This is Rietveld 408576698