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

Unified Diff: chrome/browser/ui/browser.cc

Issue 490103003: Use the host instead of the title for streamlined hosted apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaked Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698