summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/frame/opaque_non_client_view.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/views/frame/opaque_non_client_view.cc b/chrome/browser/views/frame/opaque_non_client_view.cc
index 2260dc0..4669d12 100644
--- a/chrome/browser/views/frame/opaque_non_client_view.cc
+++ b/chrome/browser/views/frame/opaque_non_client_view.cc
@@ -965,11 +965,8 @@ void OpaqueNonClientView::LayoutOTRAvatar() {
}
void OpaqueNonClientView::LayoutDistributorLogo() {
- if (distributor_logo_.empty())
- return;
-
- int logo_w = distributor_logo_.width();
- int logo_h = distributor_logo_.height();
+ int logo_w = distributor_logo_.empty() ? 0 : distributor_logo_.width();
+ int logo_h = distributor_logo_.empty() ? 0 : distributor_logo_.height();
int logo_x = 0;
if (UILayoutIsRightToLeft()) {