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

Unified Diff: chrome/browser/views/frame/opaque_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/glass_browser_frame_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/views/frame/opaque_browser_frame_view.cc (revision 13385)
+++ chrome/browser/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -777,7 +777,8 @@
void OpaqueBrowserFrameView::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()) {
canvas->DrawBitmapInt(*distributor_logo_,
MirroredLeftPointForRect(logo_bounds_), logo_bounds_.y());
}
@@ -951,7 +952,7 @@
void OpaqueBrowserFrameView::LayoutDistributorLogo() {
// Always lay out the logo, even when it's not present, so we can lay out the
// window title based on its position.
- if (distributor_logo_) {
+ if (distributor_logo_ && browser_view_->ShouldShowDistributorLogo()) {
logo_bounds_.SetRect(minimize_button_->x() - distributor_logo_->width() -
kLogoCaptionSpacing, TopResizeHeight(), distributor_logo_->width(),
distributor_logo_->height());
« no previous file with comments | « chrome/browser/views/frame/glass_browser_frame_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698