| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 87fe7ed1f87e7ff2f15d5b6b1955e7574abfe211..cbfa3d8e42b42bfa8ec39dcfc3da9027c98f637b 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -576,6 +576,12 @@ base::string16 Browser::GetWindowTitleForCurrentTab() const {
|
| // |contents| can be NULL because GetWindowTitleForCurrentTab is called by the
|
| // window during the window's creation (before tabs have been added).
|
| if (contents) {
|
| + // Streamlined hosted apps use the host instead of the title.
|
| + if (is_app() && CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableStreamlinedHostedApps)) {
|
| + return base::UTF8ToUTF16(contents->GetURL().host());
|
| + }
|
| +
|
| title = contents->GetTitle();
|
| FormatTitleForDisplay(&title);
|
| }
|
|
|