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

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 (comment) 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
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | no next file » | 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 d8336ab3cda93a3b7969ecc05177ffc42354191c..1ba446a0ab9fca7e6f782ec7c216b13577f4a856 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(true /* include_app_name */);
}
base::string16 BrowserView::GetAccessibleWindowTitle() const {
+ const bool include_app_name = false;
if (IsOffTheRecord()) {
return l10n_util::GetStringFUTF16(
IDS_ACCESSIBLE_INCOGNITO_WINDOW_TITLE_FORMAT,
- GetWindowTitle());
+ browser_->GetWindowTitleForCurrentTab(include_app_name));
}
- return GetWindowTitle();
+ return browser_->GetWindowTitleForCurrentTab(include_app_name);
}
views::View* BrowserView::GetInitiallyFocusedView() {
« no previous file with comments | « 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