diff --git a/atom/browser/native_window_mac.h b/atom/browser/native_window_mac.h index 3c3de72a8071..19a0edc00a41 100644 --- a/atom/browser/native_window_mac.h +++ b/atom/browser/native_window_mac.h @@ -147,7 +147,6 @@ class NativeWindowMac : public NativeWindow, protected: // views::WidgetDelegate: - void DeleteDelegate() override; views::Widget* GetWidget() override; const views::Widget* GetWidget() const override; bool CanResize() const override; diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 60d6b93a87cb..182e3d79134c 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -1305,9 +1305,6 @@ gfx::Rect NativeWindowMac::WindowBoundsToContentBounds( } } -void NativeWindowMac::DeleteDelegate() { -} - views::Widget* NativeWindowMac::GetWidget() { return widget_.get(); } diff --git a/atom/browser/ui/cocoa/atom_ns_window_delegate.mm b/atom/browser/ui/cocoa/atom_ns_window_delegate.mm index 5ddfab46ef7c..78bfe1fcd7b5 100644 --- a/atom/browser/ui/cocoa/atom_ns_window_delegate.mm +++ b/atom/browser/ui/cocoa/atom_ns_window_delegate.mm @@ -20,10 +20,10 @@ // on the fly. // TODO(zcbenz): Add interface in NativeWidgetMac to allow overriding creating // window delegate. - views::BridgedNativeWidget* bridget_view = + views::BridgedNativeWidget* bridged_view = views::NativeWidgetMac::GetBridgeForNativeWindow( shell->GetNativeWindow()); - if ((self = [super initWithBridgedNativeWidget:bridget_view])) { + if ((self = [super initWithBridgedNativeWidget:bridged_view])) { shell_ = shell; is_zooming_ = false; level_ = [shell_->GetNativeWindow() level];