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

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

Issue 22300006: Makes devtools window show caption on win-aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/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 32498686747a4315a51008a84f062620fe716af1..c2f4dc9fda70c9b8c9523274e560851da4905d52 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1502,12 +1502,12 @@ views::View* BrowserView::GetInitiallyFocusedView() {
}
bool BrowserView::ShouldShowWindowTitle() const {
-#if defined(USE_ASH)
// For Ash only, app host windows do not show an icon, crbug.com/119411.
// Child windows (i.e. popups) do show an icon.
- if (browser_->is_app() && browser_->app_type() == Browser::APP_TYPE_HOST)
+ if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH &&
+ browser_->is_app() && browser_->app_type() == Browser::APP_TYPE_HOST)
return false;
-#endif
+
return browser_->SupportsWindowFeature(Browser::FEATURE_TITLEBAR);
}
« 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