Jeremy Rose 2 years ago
parent
commit
ade06e0915
2 changed files with 1 additions and 4 deletions
  1. 0 3
      shell/browser/native_window_views.cc
  2. 1 1
      shell/common/color_util.h

+ 0 - 3
shell/browser/native_window_views.cc

@@ -1520,9 +1520,6 @@ void NativeWindowViews::OnWidgetBoundsChanged(views::Widget* changed_widget,
   // handle minimized windows on Windows.
   const auto new_bounds = GetBounds();
   if (widget_size_ != new_bounds.size()) {
-    int width_delta = new_bounds.width() - widget_size_.width();
-    int height_delta = new_bounds.height() - widget_size_.height();
-
     NotifyWindowResize();
     widget_size_ = new_bounds.size();
   }

+ 1 - 1
shell/common/color_util.h

@@ -13,7 +13,7 @@
 // ease of use in gin converters.
 struct WrappedSkColor {
   WrappedSkColor() {}
-  WrappedSkColor(SkColor c) : value(c) {}
+  WrappedSkColor(SkColor c) : value(c) {}  // NOLINT(runtime/explicit)
   SkColor value;
   operator SkColor() const { return value; }
 };