Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc |
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc |
index 8ff89ed9708ce4652180891ddfb61ea7b9a68fa4..eaa1ec6a0cf1a5665c8882206e45a62f4689536e 100644 |
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc |
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc |
@@ -57,8 +57,7 @@ bool ChromeNativeAppWindowViewsWin::IsRunningInAsh() { |
if (!ash::Shell::HasInstance()) |
return false; |
- views::Widget* widget = |
- implicit_cast<views::WidgetDelegate*>(this)->GetWidget(); |
+ views::Widget* widget = GetWidget(); |
chrome::HostDesktopType host_desktop_type = |
chrome::GetHostDesktopTypeForNativeWindow(widget->GetNativeWindow()); |
return host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH; |