Index: chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.cc |
=================================================================== |
--- chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.cc (revision 90370) |
+++ chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.cc (working copy) |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_gtk.h" |
#include "chrome/browser/ui/view_ids.h" |
+#include "chrome/browser/ui/views/tab_contents/native_tab_contents_container_views.h" |
#include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
#include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
#include "content/browser/renderer_host/render_widget_host_view.h" |
@@ -145,5 +146,7 @@ |
// static |
NativeTabContentsContainer* NativeTabContentsContainer::CreateNativeContainer( |
TabContentsContainer* container) { |
+ if (views::Widget::IsPureViews()) |
+ return new NativeTabContentsContainerViews(container); |
return new NativeTabContentsContainerGtk(container); |
} |