Index: chrome/browser/ui/views/chrome_views_delegate.cc |
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc |
index f7637f9d519de24d49764c9a9692c806a675819d..04151fd9b71086611707b5870f9e240519f7b223 100644 |
--- a/chrome/browser/ui/views/chrome_views_delegate.cc |
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc |
@@ -64,7 +64,6 @@ |
#include "chrome/browser/ui/ash/ash_util.h" |
#endif |
- |
// Helpers -------------------------------------------------------------------- |
namespace { |
@@ -354,6 +353,11 @@ void ChromeViewsDelegate::OnBeforeWidgetInit( |
} |
} |
#endif // OS_WIN |
+ |
+ if (!use_non_toplevel_window && !native_widget_factory().is_null()) { |
+ params->native_widget = native_widget_factory().Run(*params, delegate); |
+ return; |
+ } |
#endif // USE_AURA |
#if defined(OS_CHROMEOS) |