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

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

Issue 9835013: Ash: Don't show window icon or title for app windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to BrowserView, add line Created 8 years, 9 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/views/frame/browser_non_client_frame_view_aura.cc ('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 c3ea5d8d33daed45944d931013a9e693f29f877b..1ae7a884889121234e7d026f84a963501bafd6ee 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1464,6 +1464,11 @@ views::View* BrowserView::GetInitiallyFocusedView() {
}
bool BrowserView::ShouldShowWindowTitle() const {
+#if defined(USE_ASH)
+ // For Ash only, app windows do not show a title. crbug.com/119411
+ if (browser_->is_app())
+ return false;
+#endif
return browser_->SupportsWindowFeature(Browser::FEATURE_TITLEBAR);
}
@@ -1484,6 +1489,11 @@ SkBitmap BrowserView::GetWindowIcon() {
}
bool BrowserView::ShouldShowWindowIcon() const {
+#if defined(USE_ASH)
+ // For Ash only, app windows do not show an icon. crbug.com/119411
+ if (browser_->is_app())
+ return false;
+#endif
return browser_->SupportsWindowFeature(Browser::FEATURE_TITLEBAR);
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698