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

Unified Diff: chrome/browser/views/frame/glass_browser_frame_view.cc

Issue 62167: Distributor logo and " - App Name" shouldn't be shown on app frame windows.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/views/frame/browser_view.h ('k') | chrome/browser/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/glass_browser_frame_view.cc
===================================================================
--- chrome/browser/views/frame/glass_browser_frame_view.cc (revision 13385)
+++ chrome/browser/views/frame/glass_browser_frame_view.cc (working copy)
@@ -260,7 +260,8 @@
void GlassBrowserFrameView::PaintDistributorLogo(ChromeCanvas* canvas) {
// The distributor logo is only painted when the frame is not maximized and
// when we actually have a logo.
- if (!frame_->IsMaximized() && distributor_logo_) {
+ if (!frame_->IsMaximized() && distributor_logo_ &&
+ browser_view_->ShouldShowDistributorLogo()) {
// NOTE: We don't mirror the logo placement here because the outer frame
// itself isn't mirrored in RTL. This is a bug; if it is fixed, this should
// be mirrored as in opaque_non_client_view.cc.
@@ -337,7 +338,7 @@
}
void GlassBrowserFrameView::LayoutDistributorLogo() {
- if (distributor_logo_) {
+ if (distributor_logo_ && browser_view_->ShouldShowDistributorLogo()) {
logo_bounds_.SetRect(frame_->GetMinimizeButtonOffset() -
distributor_logo_->width() - kLogoCaptionSpacing, kLogoTopSpacing,
distributor_logo_->width(), distributor_logo_->height());
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/browser/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698