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

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

Issue 2093963003: [ash-md] Uses 'Chrome - <title>' format for browser windows in overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Uses 'Chrome - <title>' format for browser windows in overview (accessibility fixes) Created 4 years, 6 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/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 d8336ab3cda93a3b7969ecc05177ffc42354191c..4da10823945bf2556ab6c1bcb960be4b8456c1b6 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1654,16 +1654,17 @@ bool BrowserView::CanActivate() const {
}
base::string16 BrowserView::GetWindowTitle() const {
- return browser_->GetWindowTitleForCurrentTab();
+ return browser_->GetWindowTitleForCurrentTab(false /* accessible */);
}
base::string16 BrowserView::GetAccessibleWindowTitle() const {
+ const bool accessible = true;
if (IsOffTheRecord()) {
return l10n_util::GetStringFUTF16(
IDS_ACCESSIBLE_INCOGNITO_WINDOW_TITLE_FORMAT,
- GetWindowTitle());
+ browser_->GetWindowTitleForCurrentTab(accessible));
}
- return GetWindowTitle();
+ return browser_->GetWindowTitleForCurrentTab(accessible);
}
views::View* BrowserView::GetInitiallyFocusedView() {
« chrome/browser/ui/browser.h ('K') | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698