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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 2497373003: Add tab status to accessibility labels (Closed)
Patch Set: Formatting and style Created 4 years, 1 month 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index d31ac99ae903b9296a4609cd19f2951544232288..17b6e0d3d5b038aee69498fe9c5cb3a915150f65 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1594,13 +1594,9 @@ base::string16 BrowserView::GetWindowTitle() const {
}
base::string16 BrowserView::GetAccessibleWindowTitle() const {
- const bool include_app_name = false;
- if (IsIncognito()) {
- return l10n_util::GetStringFUTF16(
- IDS_ACCESSIBLE_INCOGNITO_WINDOW_TITLE_FORMAT,
- browser_->GetWindowTitleForCurrentTab(include_app_name));
- }
- return browser_->GetWindowTitleForCurrentTab(include_app_name);
sky 2016/11/26 17:19:33 GetWindowTitleForCurrentTab() has a couple of heur
edwardjung 2016/12/06 20:23:16 Done.
+ Tab* current_tab =
+ tabstrip_->tab_at(browser_->tab_strip_model()->active_index());
+ return current_tab->GetAccessibleTabLabel();
}
views::View* BrowserView::GetInitiallyFocusedView() {
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698